我需要帮助。我的网站一直运行良好,直到我安装了这个模块:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=5985
我按照开发商的指示做了所有的事情,但现在我的整个网站都搞砸了。当我尝试加载后端时,我得到以下错误:
Fatal error: Class 'Log' not found in /home/mhxhh/public_html/admin/index.php on line 58
当我试图加载前端时,我得到了这个错误:
Fatal error: Class 'Log' not found in /home/mhxhh/public_html/index.php on line 75
我现在已经删除了这些模块中的所有文件,加上谷歌和bing验证文件,但没有任何更改,错误仍在复制中。请帮忙,因为我不知道该怎么办。谢谢
我遇到了同样的问题,只是与您提到的扩展没有关联(我不相信)。我找到了这个链接,它为我解释了修复方法:http://forum.opencart.com/viewtopic.php?t=108291.
问题是我的/system/library/log.php文件不知怎么变成了0字节。它需要重新上传,或者在我的情况下,我只是剪切并粘贴了我正在运行的另一个OC网站的内容。保存并刷新了浏览器,网站重新启动并运行!
这是我的log.php文件的内容:
<?php
final class Log {
private $filename;
public function __construct($filename) {
$this->filename = $filename;
}
public function write($message) {
$file = DIR_LOGS . $this->filename;
$handle = fopen($file, 'a+');
fwrite($handle, date('Y-m-d G:i:s') . ' - ' . $message . "'n");
fclose($handle);
}
}
?>
希望这有帮助——干杯。