未定义常量 DIR_LOG Opencart 错误

undefined constant DIR_LOG Error with Opencart

我突然收到以下错误,这使我无法登录到我的管理员,它也显示在店面的 header 上

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

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

rename(DIR_LOG . 'ebaylog.log', DIR_LOG . '_ebaylog_' . date('Y-m-d_H-i-s') . '.log');

我检查了 DIR_LOG 在 config.php 中的正确定义 非常感谢任何帮助识别和解决问题的帮助

刚刚通过添加

修复了它
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 pro 有一个错误,并且通过定义 LOG 和 LOG[=18 使用 DIR_LOG 而不是 DIR_LOGS =]S两个问题就迎刃而解了