CodeIgniter Forums
Update to php 8.2 breaks code running fine with php 8.1 - 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: Update to php 8.2 breaks code running fine with php 8.1 (/showthread.php?tid=87328)



Update to php 8.2 breaks code running fine with php 8.1 - Ornis - 04-07-2023

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


RE: Update to php 8.2 breaks code running fine with php 8.1 - JustJohnQ - 04-07-2023

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


RE: Update to php 8.2 breaks code running fine with php 8.1 - luckmoshy - 04-07-2023

(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


RE: Update to php 8.2 breaks code running fine with php 8.1 - Ornis - 04-07-2023

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


RE: Update to php 8.2 breaks code running fine with php 8.1 - luckmoshy - 04-07-2023

(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/installation/upgrading.html


RE: Update to php 8.2 breaks code running fine with php 8.1 - InsiteFX - 04-07-2023

READ:

PHP 8.2: Dynamic Properties are deprecated