Closed pntrivedy closed 1 year ago
From what version did you upgrade CI4? And did you follow all the upgrading guides? https://codeigniter4.github.io/CodeIgniter4/installation/upgrading.html
Your file namespace is Kint
?
@kenjis : From 4.1.8
@paulbalandan : Yes namespace is Kint. Does App/Config/ have Kint.php by default?
Why are you using Kint as your namespace?
@pntrivedy I cannot reproduce the error. I've installed v4.1.8 and upgraded to v4.4.3. See https://github.com/kenjis/ci418to433/commits/main
@paulbalandan : I haven't edited Kint.php. It was there in App/Config and while upgrading I have tried to replace it with Kint.php from sysytem/thirdparty/Kint/Kint.php
I think I have messed up at that point.
Let me try to get Kint from older commit and update AbstractRenderer.
@pntrivedy Do not replace app/Config/Kint.php
with the one inside system/ThirdParty/Kint/Kint.php
! They are different classes.
app/Config/Kint.php
is a Config class for CI4.
Copy the latest one.
https://github.com/kenjis/ci418to433/blob/main/app/Config/Kint.php
PHP Version
8.2
CodeIgniter4 Version
4.4.3
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
MySQL
What happened?
I updated packages using 'composer update' faced this error.
Cannot declare class Kint\Kint, because the name is already in use
APPPATH/Config/Kint.php at line 41
When I change env from development to production I face 404 error on route that was working fine previously.
Steps to Reproduce
Nil
Expected Output
Working app
Anything else?
No response