Welcome Guest, Not a member yet? Register   Sign In
initializeKint() undefined
#1

(This post was last modified: 06-11-2024, 11:06 PM by ozornick. Edit Reason: Delete double )

I copied a CodeIgniter project running on another server into XAMPP to verify the operation, and the following error was displayed:
PHP Code:
Call to undefined method CodeIgniter\Autoloader\Autoloader::initializeKint() 

The backtrace is here:

PHP Code:
SYSTEMPATH\Boot.php 56  —  CodeIgniter\Boot::initializeKint ()
FCPATH\index.php 56  —  CodeIgniter\Boot::bootWeb arguments 
CI_VERSION is 4.1.1、and php version is 8.1.
Let me know if you need any other info.
thanks.
Reply
#2

(This post was last modified: 06-11-2024, 11:08 PM by kenjis.)

Your index.php and Boot.php are for CI v4.5.
If your CI version is 4.1.1, they are not compatible.

If you use PHP 8.1, CI 4.1.6 or later is required.
https://codeigniter.com/user_guide/chang...hancements

But it is always recommended to use the latest version, now v4.5.2.
Reply
#3

You copied vendor/ path?
Or system/ if installed from ZIP?
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#4

(This post was last modified: 06-12-2024, 01:18 AM by FjR.)

Thank you both for your replies.
I replaced the the app/Config folder, system folder and index.php in public folder with the CI4.1.6 one and fixed minor errors including #[\AllowDynamicProperties], so everything worked fine!
(I know it's best to go with the latest version...)

Thank you both so much.
Reply
#5

CI v4.1 is very old. There are some Security Advisories:
https://github.com/codeigniter4/CodeIgni...advisories
Check your risk and upgrade if necessary.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB