![]() |
Updating from 4.2.1 to 4.4.6 session bug - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Updating from 4.2.1 to 4.4.6 session bug (/showthread.php?tid=90394) |
Updating from 4.2.1 to 4.4.6 session bug - ramonpuig - 03-12-2024 Hello I updated from 4.2.1 to 4.4.6 using composer. I followed general tips after i had issues with kint renderer and index.php. There are no particular instructions in here to upgrade from that version to the latest . No i get these warnings and the error on $this->session = \Config\Services: ![]() Deprecated: Creation of dynamic property Config\Exceptions::$logDeprecations is deprecated in /opt/lampp/htdocs/q/vendor/codeigniter4/framework/system/Debug/Exceptions.php on line 94 Deprecated: Creation of dynamic property Config\Exceptions::$deprecationLogLevel is deprecated in /opt/lampp/htdocs/q/vendor/codeigniter4/framework/system/Debug/Exceptions.php on line 95 ErrorException Attempt to read property "driver" on null PHP Code: namespace App\Controllers; The line : PHP Code: $this->session = \Config\Services::session(); is not working , the session is not initialized, and then i get the null value on all session operations. How is this happening? In version 4.2.1 it was not happening. Any ideas? Did I miss something in the upgrade since I upgraded from a much older version of ci? Cheers RE: Updating from 4.2.1 to 4.4.6 session bug - kenjis - 03-12-2024 Did you followed all instructions for upgrading from 4.2.1 to 4.4.6? https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_422.html https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_423.html https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_424.html ... https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_444.html https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_445.html https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_446.html RE: Updating from 4.2.1 to 4.4.6 session bug - kenjis - 03-12-2024 Quote:app/Config/Exceptions.php |