未定义的常量DIR_LOG Opencart出错

时间:2015-10-25 00:31:04

标签: php opencart opencart2.x opencart-module

突然间我收到以下错误,导致我无法登录我的管理员,它也显示在商店前端的标题上

os.fsync()

以下是第150行/home/user/public_html/system/library/openbay/ebay.php中的代码

Notice: Use of undefined constant DIR_LOG - assumed 'DIR_LOG' in /home/user/public_html/system/library/openbay/ebay.php on line 150Notice: Use of undefined constant DIR_LOG - assumed 'DIR_LOG' in /home/user/public_html/system/library/openbay/ebay.php on line 150Warning: rename(DIR_LOGebaylog.log,DIR_LOG_ebaylog_2015-10-25_00-23-22.log): No such file or directory in /home/user/public_html/system/library/openbay/ebay.php on line 150Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/admin/index.php:84) in /home/user/public_html/system/library/response.php on line 12

我检查了并且在config.php中正确定义了DIR_LOG 任何有助于识别和解决问题的帮助都非常受欢迎

1 个答案:

答案 0 :(得分:2)

通过添加

修复它
define('DIR_LOG', '/home/schwann/public_html/system/logs/');

到/home/user/public_html/admin/config.php Opencart

define('DIR_LOGS', '/home/schwann/public_html/system/logs/');

默认情况下,看起来openbay专业版有一个错误,并且通过定义LOG和LOG S 来使用DIR_LOG代替DIR_LOG S ,这两个问题都将得到解决。< / p>