![]() |
initializeKint() undefined - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: initializeKint() undefined (/showthread.php?tid=91058) |
initializeKint() undefined - FjR - 06-11-2024 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 () Let me know if you need any other info. thanks. RE: initializeKint() undefined - kenjis - 06-11-2024 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/changelogs/v4.1.6.html#enhancements But it is always recommended to use the latest version, now v4.5.2. RE: initializeKint() undefined - ozornick - 06-11-2024 You copied vendor/ path? Or system/ if installed from ZIP? RE: initializeKint() undefined - FjR - 06-12-2024 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. RE: initializeKint() undefined - kenjis - 06-12-2024 CI v4.1 is very old. There are some Security Advisories: https://github.com/codeigniter4/CodeIgniter4/security/advisories Check your risk and upgrade if necessary. |