Update to v4.5.1, same using FactoriesCache - 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: Update to v4.5.1, same using FactoriesCache (/showthread.php?tid=90682) |
Update to v4.5.1, same using FactoriesCache - ddevsr - 04-17-2024 I updated from 4.4.x to 4.51, Follow instruction upgrading. I clear cache first created by 4.4.x, and open again in browser with local computer give SUCCESS. But with environment dev server same as clear cache first appear ERROR Fatal error: Declaration of CodeIgniter\Log\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::emergency($message, array $context = []) in /home/http8_data/xxx/vendor/codeigniter4/framework/system/Log/Logger.php on line 162 This is related to FactoriesCache? What a problem? RE: Update to v4.5.1, same using FactoriesCache - kenjis - 04-17-2024 (04-17-2024, 07:39 AM)ddevsr Wrote: This is related to FactoriesCache? If you think so, disable the cache and try again. RE: Update to v4.5.1, same using FactoriesCache - kenjis - 04-17-2024 (04-17-2024, 07:39 AM)ddevsr Wrote: Fatal error: Declaration of CodeIgniter\Log\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::emergency($message, array $context = []) in /home/http8_data/xxx/vendor/codeigniter4/framework/system/Log/Logger.php on line 162 The error message tells the problem. Declaration of PHP Code: CodeIgniter\Log\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PHP Code: PsrExt\Log\LoggerInterface::emergency($message, array $context = []) RE: Update to v4.5.1, same using FactoriesCache - ddevsr - 04-17-2024 (04-17-2024, 03:41 PM)kenjis Wrote:(04-17-2024, 07:39 AM)ddevsr Wrote: Fatal error: Declaration of CodeIgniter\Log\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::emergency($message, array $context = []) in /home/http8_data/xxx/vendor/codeigniter4/framework/system/Log/Logger.php on line 162 I don't extend PsrExt\Log\LoggerInterface at all Local computer = PHP 8.3.4 Dev Server = PHP 8.3.6 RE: Update to v4.5.1, same using FactoriesCache - kenjis - 04-17-2024 Ah, remove psr extention. It is outdated. https://github.com/jbboehr/php-psr RE: Update to v4.5.1, same using FactoriesCache - xsPurX - 04-25-2024 (04-17-2024, 07:47 PM)kenjis Wrote: Ah, remove psr extention. It is outdated.how do you remove it? RE: Update to v4.5.1, same using FactoriesCache - kenjis - 05-13-2024 Remove the line in your php.ini: extension=psr.so |