本地PC开发的Opencart网站上传到直播服务器后出现错误
Errors on Opencart website developed n local PC after being uploaded to live server
我使用 XAMPP 在我的本地 PC 上开发了一个 OC 商店。我已经将商店上传到服务器,并且显示良好,但是有一些不正常的地方。举个例子,管理面板运行不正常——我可以登录,但是什么也没有显示。我几乎可以肯定问题出在网址上,但由于我曾经弄乱过该网站并不得不重新上传它,我非常欢迎其他人的帮助。错误消息分为两部分 - 一部分在 header 中,另一部分在页脚中。
header 中的错误:
Warning: fopen(/home/davofvpt/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/davofvpt/public_html/system/library/log.php on line 22
Warning: fopen(/home/davofvpt/public_html/storage/logs/openbay.log): failed
to open stream: No such file or directory in
/home/davofvpt/public_html/system/library/log.php on line 22
Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39
Warning: Cannot modify header information - headers already sent by (output
started at /home/davofvpt/public_html/system/framework.php:42) in
/home/davofvpt/public_html/catalog/controller/startup/session.php on line
25Warning: Cannot modify header information - headers already sent by
(output started at /home/davofvpt/public_html/system/framework.php:42) in
/home/davofvpt/public_html/catalog/controller/startup/startup.php on line
99Warning: Cannot modify header information - headers already sent by
(output started at /home/davofvpt/public_html/system/framework.php:42) in
/home/davofvpt/public_html/catalog/controller/startup/startup.php on line
157Warning: fopen(/home/davofvpt/public_html/storage/logs/openbay.log):
failed to open stream: No such file or directory in
/home/davofvpt/public_html/system/library/log.php on line 22
Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39
Warning: fopen(/home/davofvpt/public_html/storage/logs/error.log): failed to
open stream: No such file or directory in
/home/davofvpt/public_html/system/library/log.php on line 22
页脚错误:
Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39Warning:
fclose()
expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39Warning:
fclose()
expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39
您已将 "storage" 文件夹从主目录(例如 system/storage)移动到其他位置。
请将文件夹恢复到移动的位置。
或使用自动安装程序安装 Opencart。
如果您不是 Opencart 专家,请按照以下步骤操作。
- 安装新的 opencart(您需要的版本)。
- 从管理文件夹下载或复制配置文件。
- 将修改后的管理和目录文件夹上传到服务器(使用 FTP)。
- 将下载的配置文件重新上传到管理文件夹。
现在和本地服务器一样工作
我通过跟踪错误消息设法解决了这个问题:
- 我创建了($touch storage/logs/error.log)错误信息中提到的文件名
- 我应用了权限 (chmod 777 storage/logs/error.log)
- 为 openbay.log
做了 1,2
- 我注意到所有者 _www 的存储文件夹已更改为我的用户名(我认为这一步不是必需的 - 只需 1-3 即可)
注意:我从删除存储文件夹内容开始
我使用 XAMPP 在我的本地 PC 上开发了一个 OC 商店。我已经将商店上传到服务器,并且显示良好,但是有一些不正常的地方。举个例子,管理面板运行不正常——我可以登录,但是什么也没有显示。我几乎可以肯定问题出在网址上,但由于我曾经弄乱过该网站并不得不重新上传它,我非常欢迎其他人的帮助。错误消息分为两部分 - 一部分在 header 中,另一部分在页脚中。
header 中的错误:
Warning: fopen(/home/davofvpt/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/davofvpt/public_html/system/library/log.php on line 22
Warning: fopen(/home/davofvpt/public_html/storage/logs/openbay.log): failed
to open stream: No such file or directory in
/home/davofvpt/public_html/system/library/log.php on line 22
Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39
Warning: Cannot modify header information - headers already sent by (output
started at /home/davofvpt/public_html/system/framework.php:42) in
/home/davofvpt/public_html/catalog/controller/startup/session.php on line
25Warning: Cannot modify header information - headers already sent by
(output started at /home/davofvpt/public_html/system/framework.php:42) in
/home/davofvpt/public_html/catalog/controller/startup/startup.php on line
99Warning: Cannot modify header information - headers already sent by
(output started at /home/davofvpt/public_html/system/framework.php:42) in
/home/davofvpt/public_html/catalog/controller/startup/startup.php on line
157Warning: fopen(/home/davofvpt/public_html/storage/logs/openbay.log):
failed to open stream: No such file or directory in
/home/davofvpt/public_html/system/library/log.php on line 22
Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39
Warning: fopen(/home/davofvpt/public_html/storage/logs/error.log): failed to
open stream: No such file or directory in
/home/davofvpt/public_html/system/library/log.php on line 22
页脚错误:
Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39Warning:
fclose()
expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39Warning:
fclose()
expects parameter 1 to be resource, boolean given in
/home/davofvpt/public_html/system/library/log.php on line 39
您已将 "storage" 文件夹从主目录(例如 system/storage)移动到其他位置。 请将文件夹恢复到移动的位置。
或使用自动安装程序安装 Opencart。
如果您不是 Opencart 专家,请按照以下步骤操作。
- 安装新的 opencart(您需要的版本)。
- 从管理文件夹下载或复制配置文件。
- 将修改后的管理和目录文件夹上传到服务器(使用 FTP)。
- 将下载的配置文件重新上传到管理文件夹。
现在和本地服务器一样工作
我通过跟踪错误消息设法解决了这个问题:
- 我创建了($touch storage/logs/error.log)错误信息中提到的文件名
- 我应用了权限 (chmod 777 storage/logs/error.log)
- 为 openbay.log 做了 1,2
- 我注意到所有者 _www 的存储文件夹已更改为我的用户名(我认为这一步不是必需的 - 只需 1-3 即可)
注意:我从删除存储文件夹内容开始