![]() |
After deployment: Error: Class "CodeIgniter\I18n\Time" 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: After deployment: Error: Class "CodeIgniter\I18n\Time" not found (/showthread.php?tid=92405) |
After deployment: Error: Class "CodeIgniter\I18n\Time" not found - Samax - 01-30-2025 Hello! My issue is the following. I want to deploy my CI4 application with PHP-FPM and Apache, but I receive the following error. Code: [2025-01-30 13:33:55] CRITICAL: () line : Error: Class "CodeIgniter\I18n\Time" not found Code: php spark serve Code: find vendor -name *Time.php I would appreciate any help. RE: After deployment: Error: Class "CodeIgniter\I18n\Time" not found - captain-sensible - 01-30-2025 have you got in contoller anywhere: Code: use CodeIgniter\I18n\Time; in base controller i have Code: protected $theTime; then in any controller Code: public function __construct() i dont know what i was thinking at the time , all i had to do was stick time() in a view RE: After deployment: Error: Class "CodeIgniter\I18n\Time" not found - Samax - 02-02-2025 Thank you for your effort, but finally the problem was the following: At the staging area PHP 8.4 was being used. After I downgraded it to 8.3 everything worked fine. |