CodeIgniter Forums
Class "Kint\Renderer\Renderer" not found - 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: Class "Kint\Renderer\Renderer" not found (/showthread.php?tid=86106)



Class "Kint\Renderer\Renderer" not found - Mobostar - 01-10-2023

Hi,
I am getting the error below after I upgraded to 4.3 (from 4.2.11).


Quote:Class "Kint\Renderer\Renderer" not found
SYSTEMPATH/Config/Factories.php at line 129
I noticed that Composer removed Kint during "composer update", but did not install the newer version. However, it (newer version, 5.0.1) is under "requires (dev)" section of CI4 on packagist.org.
So, I added "kint-php/kint": "^5.0.1" to composer.json and ran "composer update" again, which installed Kint 5.0.2, but the error did not go away.

Any suggestions ?

Thanks


RE: Class "Kint\Renderer\Renderer" not found - michalsn - 01-10-2023

Please follow the upgrade instructions: https://www.codeigniter.com/user_guide/installation/upgrade_430.html#mandatory-file-changes


RE: Class "Kint\Renderer\Renderer" not found - HaniKhan - 01-10-2023

Change This

app/Config/Kint.php has been updated for Kint 5.0. You need to replace Kint\Renderer\Renderer with Kint\Renderer\AbstractRenderer and replace Renderer::SORT_FULL with AbstractRenderer::SORT_FULL.


RE: Class "Kint\Renderer\Renderer" not found - Mobostar - 01-11-2023

Yes, I initially made the mistake of not checking the upgrade instructions Michalsn mentioned.
It is all good now.
Thanks