CodeIgniter Forums
Codeigniter 4.6.0 Kint error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Codeigniter 4.6.0 Kint error (/showthread.php?tid=92376)



Codeigniter 4.6.0 Kint error - jcvasquez07 - 01-25-2025

Upgrading from version 4.5.8 to 4.6.0, on startup I got the error "Undefined constant Kint\Renderer\AbstractRenderer::SORT_FULL". Digging a little on the code, that instruction did exists on 4.5.8 but it was removed on 4.6.0, however the upgrade keeps the instruction in place and that results in a error.
My workaround: I commented out that instruction on app\Config\Kint.php and apparently everything works (so far), but I'm not really sure that'll come back and bite me in the long run. ¿Any thoughts about this?


RE: Codeigniter 4.6.0 Kint error - paulbalandan - 01-25-2025

Hey, in the upgrading guide from 4.5.8 to 4.6.0 there's this All Changes section. In there, app/Config/Kint.php was listed as one of the changed files in the project space. So, yeah, your change won't bite you in the long run. But make sure to check the other files listed there to see if you need updating.


RE: Codeigniter 4.6.0 Kint error - ALTITUDE_DEV - 01-26-2025

(01-25-2025, 08:08 AM)jcvasquez07 Wrote: Upgrading from version 4.5.8 to 4.6.0, on startup I got the error "Undefined constant Kint\Renderer\AbstractRenderer::SORT_FULL". Digging a little on the code, that instruction did exists on 4.5.8 but it was removed on 4.6.0, however the upgrade keeps the instruction in place and that results in a error.
My workaround: I commented out that instruction on app\Config\Kint.php and apparently everything works (so far), but I'm not really sure that'll come back and bite me in the long run. ¿Any thoughts about this?

Hi,
Just change the content in app/Config/Kint.php to the new version here : Kint 4.6.0