Welcome Guest, Not a member yet? Register   Sign In
Update to php 8.2 breaks code running fine with php 8.1
#1
Question 

I run a website on a web hosting service using the latest version CI 4.3.3 with php 8.1. As soon as I activate php 8.2 on the server, the app breaks and displays the «Whoops»-Error page. Turning back to php 8.1 and everything runs fine again. What could be the reason for this?
Thank you
Martin
Reply
#2

Switch to development mode to get the actual error message instead of Whoops....
Reply
#3

(04-07-2023, 01:56 AM)Ornis Wrote: I run a website on a web hosting service using the latest version CI 4.3.3 with php 8.1. As soon as I activate php 8.2 on the server, the app breaks and displays the «Whoops»-Error page. Turning back to php 8.1 and everything runs fine again. What could be the reason for this?
Thank you
Martin

php compatibility issue
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#4

Here are the error msg:

Deprecated: Creation of dynamic property Config\App::$cookieSameSite is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/HTTP/Response.php on line 168 Deprecated: Creation of dynamic property Config\Exceptions::$sensitiveDataInTrace is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/Debug/Exceptions.php on line 88 Deprecated: Creation of dynamic property Config\Exceptions::$logDeprecations is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/Debug/Exceptions.php on line 91 Deprecated: Creation of dynamic property Config\Exceptions::$deprecationLogLevel is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/Debug/Exceptions.php on line 92


Furthermore, Class "Kint\Renderer\Renderer" not found is displayed.

Thanks

Class "Kint\Renderer\Rendere
Reply
#5

(04-07-2023, 02:58 AM)Ornis Wrote: Here are the error msg:

Deprecated: Creation of dynamic property Config\App::$cookieSameSite is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/HTTP/Response.php on line 168 Deprecated: Creation of dynamic property Config\Exceptions::$sensitiveDataInTrace is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/Debug/Exceptions.php on line 88 Deprecated: Creation of dynamic property Config\Exceptions::$logDeprecations is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/Debug/Exceptions.php on line 91 Deprecated: Creation of dynamic property Config\Exceptions::$deprecationLogLevel is deprecated in /home/httpd/vhosts/xxxx.ch/ornithologiebuero_website/ci4/system/Debug/Exceptions.php on line 92


Furthermore, Class "Kint\Renderer\Renderer" not found is displayed.

Thanks

Class "Kint\Renderer\Rendere

as you see it is caused by php compatibility what to do follow here https://codeigniter4.github.io/userguide...ading.html
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#6

READ:

PHP 8.2: Dynamic Properties are deprecated
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB