opencart网站搬家后出现错误:Warning: fopen(/home/mrot/storage/logs/openbay.log): failed to open stream: Permission denied in /home/mrot/public_html/system/library/log.php on line 22

最近有客户将外贸网站从别处搬家到我们乐道美国主机上,一切都弄好后,访问网站顶部出现错误提示:

Warning: fopen(/home/mrot/storage/logs/openbay.log): failed to open stream: Permission denied in /home/mrot/domains/mrot.cn/public_html/system/library/log.php on line 22Warning: fopen

/home/mrot/domains/mrot.cn/public_html/system/library/log.php on line 22

从错误提示看,大概意思是storage/logs/error.log目录下的错误日志文件写入有问题。

经检查原来在 storage下没有logs文件夹和error.log文件

解决方法:

在 storage里创建logs文件夹和error.log文件即可。

发表评论