Updating from 4.2.1 to 4.4.6 session bug |
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
Did you followed all instructions for upgrading from 4.2.1 to 4.4.6?
https://codeigniter4.github.io/CodeIgnit...e_422.html https://codeigniter4.github.io/CodeIgnit...e_423.html https://codeigniter4.github.io/CodeIgnit...e_424.html ... https://codeigniter4.github.io/CodeIgnit...e_444.html https://codeigniter4.github.io/CodeIgnit...e_445.html https://codeigniter4.github.io/CodeIgnit...e_446.html Quote:app/Config/Exceptions.php |
Welcome Guest, Not a member yet? Register Sign In |