Welcome Guest, Not a member yet? Register   Sign In
Upgrading from 4.1.8 to 4.2.0

I went through the process of upgrading codeigniter from 4.1.8 to 4.2.0
I've the framework installed through composer

I executed the following commands

rm public/index.php
rm ./spark

Then the commands stated in user Guide

> composer update
> cp vendor/codeigniter4/framework/public/index.php public/index.php
> cp vendor/codeigniter4/framework/spark .

Now I cannot run the App because I'm getting this in the Apache logs

[Thu Jun 09 11:10:14.915165 2022] [php7:error] [pid 1931744] [client] PHP Fatal error:  Uncaught Error: Call to a member function run() on int in /var/www/myweb/index.php:40\nStack trace:\n#0 {main}\n  thrown in /var/www/myweb/index.php on line 40

Should I also copy (and overwrite) the vendor/codeigniter4/framework/public/index.php to /var/www/myweb/index.php ?

I don't remember why I have that index.php in root, but I guess it was for sef urls or to remove index.php from url

Thanks a lot

Messages In This Thread
Upgrading from 4.1.8 to 4.2.0 - by kabeza - 06-09-2022, 07:49 AM
RE: Upgrading from 4.1.8 to 4.2.0 - by iRedds - 06-09-2022, 08:02 AM
RE: Upgrading from 4.1.8 to 4.2.0 - by samiam - 06-09-2022, 10:01 AM
RE: Upgrading from 4.1.8 to 4.2.0 - by kenjis - 06-09-2022, 03:10 PM

Theme © iAndrew 2016 - Forum software by © MyBB