The error.log file does not exist in the "system/storage/logs" directory
My question is: should I create the file? or does the system create it?

Code: Select all
Warning: fopen(/var/www/html/buyhistory/system/storage/logs/error.log): Failed to open stream: Permission denied in /var/www/html/buyhistory/system/library/log.php on line 30
Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/buyhistory/system/library/log.php:32 Stack trace: #0 /var/www/html/buyhistory/system/library/log.php(32): fclose() #1 /var/www/html/buyhistory/system/framework.php(30): Opencart\System\Library\Log->__construct() #2 /var/www/html/buyhistory/install/index.php(42): require_once('...') #3 {main} thrown in /var/www/html/buyhistory/system/library/log.php on line 32
OSWorX wrote: ↑Tue Mar 19, 2024 8:15 pmFirst of all: IF using OpenCart 4.x, use the latest version: 4.0.2.3
Second: I'm sorry to say this (but is written in this forum a few hundred times ..); don't use OC 4.x at this time (too many bugs).
Better use 3.0.xxx (will be the new 3.0.4.0) from here: https://github.com/opencart/opencart/tree/3.0.x.x
Why?
Full compatible with php 8.x, all known bugs are fixed, stable and many extensions for that available at the OpenCart Marketplace.