2

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

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');

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

4

1 回答 1

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 pro 有一个错误,并且通过定义 LOG 和 LOG S使用 DIR_LOG 而不是 DIR_LOG S这两个问题都将得到解决。

于 2015-10-25T00:46:31.660 回答