CodeIgniter 3.1.13 Session Errors with PHP 8.1 |
Hello guys,
I get many errors while upgrading PHP 8.0 to PHP 8.1 On session. I started upgrading my PHP to version 8.0.28 and it works as fine as other version and when I'm trying to upgrade to PHP 8.1 I get so many errors regarding the session and deprecated syntax of PHP functions I'm posting here some of the errors that I'm getting, and my main question is that is CodeIgniter 3.1.13 is compatible with PHP 8.1 + ? and what can I do in order to fix this problem ? Return type of CI_SessionWrapper::read(string $id): mixed should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice C:\stav\system\libraries\Session\PHP8SessionWrapper.php 70 ERROR - 2024-01-09 12:45:05.216335 --> Severity: 8192 --> Return type of CI_SessionWrapper::gc(int $maxlifetime): mixed should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice C:\stav\system\libraries\Session\PHP8SessionWrapper.php 86 ERROR - 2024-01-09 12:47:29.364710 --> Severity: 8192 --> Return type of CI_SessionWrapper::read(string $id): mixed should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice C:\stav\system\libraries\Session\PHP8SessionWrapper.php 70 Quick notice: #[\ReturnTypeWillChange] is already been set in my code and still this is not working . And some errors is : ini_set(): Session ini settings cannot be changed after headers have already been sent Creation of dynamic property Auth::$Events is deprecated |
Welcome Guest, Not a member yet? Register Sign In |