Welcome Guest, Not a member yet? Register   Sign In
Can't update 4.4.8 to 4.5.0
#1

(This post was last modified: 06-05-2024, 09:56 AM by Luffy.)

So I tried to run composer update to update 4.4.8 to 4.5.0 and got this error. 

PHP Code:
This "system/bootstrap.php" is no longer used. If you are seeing this error messagethe upgrade is not completePlease refer to the upgrade guide and complete the upgradeSee https://codeigniter4.github.io/userguide/installation/upgrade_450.html 

I've made changes to all the files listed in upgrade guides
Reply
#2

See https://codeigniter4.github.io/userguide...-and-spark
Reply
#3

Thanks. I find it easier to install a fresh newest version then move the code to the new project.
Reply
#4

that seems like a lot of hard work @Luffy .

if you only have one or 2 steps to upgrade to its no big deal. I just commit and use tag with GIT version control, so that if i start pulling my hair out i can always revert to the last version via command line. IN the last upgrade i did it only involved moving spark and index.php out of the vendor file , dropping them where they should go, thus over writing old files. None of my code that I wrote was affected in anyway .
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#5

I don't know if there's a better way to update. Currently I have to use composer to make an update for each version, then make change to necessary files. Then update to the next version until it's the latest version. For example I have to update 4.4.6 to 4.4.7, then 4.4.7 to 4.4.8 then 4.4.8 to 4.5.0

I don't know how to use GIT yet. But installing a new fresh version then move the files over is not really that bad. It only takes like 5 minutes.
Reply
#6

(06-06-2024, 09:16 AM)Luffy Wrote: ... It only takes like 5 minutes.

5 minutes or 5 days ... depends on what has been changed.

In case you have something like the new request code spread in numerous places in your project:

«In previous versions, you could pass lowercase HTTP methods to the request() method. But this bug has been fixed.
Now you must pass the correct HTTP method names like GET, POST. Otherwise you would get the error response» ...
https://codeigniter4.github.io/userguide...-and-spark

It not only takes 5 days, but customers get error sites in production mode days after updating if a hidden request('get' ....) remained somewhere hidden in the files of a rarely used edge of a project.

I'ld like to see a little more sensibility, that «just» requiring $request->getUri() instead of $request->uri causes major work and problems in projects with 50 or 100 controllers and models each.

However: thanks for the great work over the years, guys!
Reply
#7

I recommend that all of you update your code as soon as possible to avoid using deprecated features like $request->uri. https://codeigniter.com/user_guide/chang...precations
Reply




Theme © iAndrew 2016 - Forum software by © MyBB