Opencart 错误 [英] Opencart errors

查看:83
本文介绍了Opencart 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 OpenCart 网站从旧服务器转移到新服务器后,我收到以下错误.我也将文件夹权限更改为 777,但仍然出现错误.

http://5cross.com/index.php?route=common/home

这些是我收到的错误:

<块引用>

警告:fopen(/home/cross5/public_html/system/logs/error.log):无法打开流:第 6 行/home/cross5/public_html/system/library/log.php 中的权限被拒绝

警告:unlink(/home/cross5/public_html/system/cache/cache.currency.1440668347):第 17 行/home/cross5/public_html/system/library/cache/file.php 中的权限被拒绝

警告:fwrite() 期望参数 1 是资源,布尔值在第 10 行的/home/cross5/public_html/system/library/log.php 中给出

警告:unlink(/home/cross5/public_html/system/cache/cache.language.1440668347):第 17 行/home/cross5/public_html/system/library/cache/file.php 中的权限被拒绝

警告:fwrite() 期望参数 1 是资源,布尔值在第 10 行的/home/cross5/public_html/system/library/log.php 中给出

警告:session_start():无法发送会话缓存限制器 - 在/home/cross5/public_html/system/library 中已发送的标头(输出开始于/home/cross5/public_html/system/library/log.php:6)/session.php 第 12 行

警告:fwrite() 期望参数 1 是资源,布尔值在第 10 行的/home/cross5/public_html/system/library/log.php 中给出

警告:fopen(/home/cross5/public_html/system/logs/openbay.log):无法打开流:第 6 行/home/cross5/public_html/system/library/log.php 中的权限被拒绝

警告:fwrite() 期望参数 1 是资源,布尔值在第 1 行的/home/cross5/public_html/system/library/log.php 中给出

解决方案

请仔细检查您的权限:

# OpenCart 1.5x/系统/日志//系统/缓存/# OpenCart 2.1x 及以上/系统/存储/日志//系统/存储/缓存/

如果您有控制台访问权限(或询问您的提供商),您可以通过以下方式执行此操作:

# OpenCart 1.5xchmod 777/home/cross5/public_html/system/logs/-Rchmod 777/home/cross5/public_html/system/cache/-R# OpenCart 2.1x 及以上chmod 777/home/cross5/public_html/system/storage/logs/-Rchmod 777/home/cross5/public_html/system/storage/cache/-R

I am getting the following error after transferring the OpenCart website to new sever from old server. I have also changed the folder permission to 777 but still getting the error.

http://5cross.com/index.php?route=common/home

These are the errors I am receiving:

Warning: fopen(/home/cross5/public_html/system/logs/error.log): failed to open stream: Permission denied in /home/cross5/public_html/system/library/log.php on line 6

Warning: unlink(/home/cross5/public_html/system/cache/cache.currency.1440668347): Permission denied in /home/cross5/public_html/system/library/cache/file.php on line 17

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/cross5/public_html/system/library/log.php on line 10

Warning: unlink(/home/cross5/public_html/system/cache/cache.language.1440668347): Permission denied in /home/cross5/public_html/system/library/cache/file.php on line 17

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/cross5/public_html/system/library/log.php on line 10

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cross5/public_html/system/library/log.php:6) in /home/cross5/public_html/system/library/session.php on line 12

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/cross5/public_html/system/library/log.php on line 10

Warning: fopen(/home/cross5/public_html/system/logs/openbay.log): failed to open stream: Permission denied in /home/cross5/public_html/system/library/log.php on line 6

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/cross5/public_html/system/library/log.php on line 1

解决方案

Please double check your permissions:

# OpenCart 1.5x
/system/logs/
/system/cache/

# OpenCart 2.1x and above
/system/storage/logs/
/system/storage/cache/

If you have console access (or ask your provider), you can do this by:

# OpenCart 1.5x
chmod 777 /home/cross5/public_html/system/logs/ -R
chmod 777 /home/cross5/public_html/system/cache/ -R

# OpenCart 2.1x and above
chmod 777 /home/cross5/public_html/system/storage/logs/ -R
chmod 777 /home/cross5/public_html/system/storage/cache/ -R

这篇关于Opencart 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆