警告并在管理员修改页面OpenCart 2.1.0.2中出错 [英] Warning and get error in admin modification page OpenCart 2.1.0.2
问题描述
当我点击 admin>中的刷新按钮时,扩展名>修改
页面导致页面崩溃,并在OpenCart 2.1.0.2中产生失败错误页面
When I hit the refresh button in the admin > Extensions > Modifications
page the page crashes and produces a page of failure errors in OpenCart 2.1.0.2
出现以下错误.请帮我.我该如何解决这个问题.
Following error got. Please help me. how can i fixed this issue.
警告:fopen(/home/onlybrands1/public_html/system/modification/system/engine/action.php)无法打开流:在该目录中没有这样的文件或目录/home/onlybrands1/public_html/admin/controller/extension/modification.php在第408行
Warning: fopen(/home/onlybrands1/public_html/system/modification/system/engine/action.php) failed to open stream: No such file or directory in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 408
警告:fwrite()期望参数1为资源,布尔值在/home/onlybrands1/public_html/admin/controller/extension/modification.php在第410行
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 410
警告:fclose()期望参数1为资源,给定布尔值在/home/onlybrands1/public_html/admin/controller/extension/modification.php在第412行
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 412
警告:fopen(/home/onlybrands1/public_html/system/modification/system/engine/loader.php):无法打开流:在该目录中没有这样的文件或目录/home/onlybrands1/public_html/admin/controller/extension/modification.php在第408行
Warning: fopen(/home/onlybrands1/public_html/system/modification/system/engine/loader.php): failed to open stream: No such file or directory in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 408
警告:fwrite()期望参数1为资源,给定布尔值在/home/onlybrands1/public_html/admin/controller/extension/modification.php在第410行
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 410
警告:fclose()期望参数1为资源,布尔值/home/onlybrands1/public_html/admin/controller/extension/modification.php在第412行
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 412
警告:fopen(/home/onlybrands1/public_html/system/modification/system/library/config.php):无法打开流:在该目录中没有这样的文件或目录/home/onlybrands1/public_html/admin/controller/extension/modification.php在第408行
Warning: fopen(/home/onlybrands1/public_html/system/modification/system/library/config.php): failed to open stream: No such file or directory in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 408
警告:fwrite()期望参数1为资源,布尔值/home/onlybrands1/public_html/admin/controller/extension/modification.php在第410行
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 410
警告:fclose()期望参数1为资源,给定布尔值在/home/onlybrands1/public_html/admin/controller/extension/modification.php在第412行
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 412
警告:fopen(/home/onlybrands1/public_html/system/modification/system/library/language.php):无法打开流:在该目录中没有这样的文件或目录/home/onlybrands1/public_html/admin/controller/extension/modification.php在第408行
Warning: fopen(/home/onlybrands1/public_html/system/modification/system/library/language.php): failed to open stream: No such file or directory in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 408
警告:fwrite()期望参数1为资源,给定布尔值在/home/onlybrands1/public_html/admin/controller/extension/modification.phpon410行
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.phpon line 410
警告:fclose()期望参数1为资源,给定布尔值在/home/onlybrands1/public_html/admin/controller/extension/modification.php在第412行
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/onlybrands1/public_html/admin/controller/extension/modification.php on line 412
警告:无法修改标头信息-标头已由发送(输出从/home/onlybrands1/public_html/admin/index.php:80开始)在/home/onlybrands1/public_html/system/library/response.php中在线12
Warning: Cannot modify header information - headers already sent by (output started at /home/onlybrands1/public_html/admin/index.php:80) in /home/onlybrands1/public_html/system/library/response.php on line 12
推荐答案
我已经意识到.发生此问题的原因是 config.php
文件中的路径错误.是OpenCart的OpenCart 2.1.0.2中较旧版本进行的修改文件夹位置更改(在 storage 文件夹内).
I have realized. this issue happen with wrong path in config.php
file. has been modification folder location change(inside storage folder) than older version in OpenCart 2.1.0.2 by OpenCart.
,并且,某些用户从Hosting provider服务中安装了具有快速设置功能的OpenCart.因此,在OpenCart 2.1.x中使用托管快速安装功能的 config.php
文件中未设置正确的路径.版本.
and, Some user install OpenCart with quick setup feature from Hosting provider services. So, there, The proper path is not set in the config.php
file with Hosting quick install feature in OpenCart 2.1.x. Version.
在这里,您需要为 DIR_CACHE
DIR_DOWNLOAD
DIR_LOGS
DIR_MODIFICATION
DIR_UPLOAD
在config.php(前和admin都是config.php)文件中.
Here, You will need to set properly path for DIR_CACHE
DIR_DOWNLOAD
DIR_LOGS
DIR_MODIFICATION
DIR_UPLOAD
in config.php(front & admin both config.php) file.
OpenCart 2.1.0.2的路径错误.(以下路径适用于2.0.x版本)
Wrong path for OpenCart 2.1.0.2. (this following path is for 2.0.x version)
define('DIR_CACHE', 'YOURSITE/system/cache/');
define('DIR_DOWNLOAD', 'YOURSITE/system/download/');
define('DIR_LOGS', 'YOURSITE/system/logs/');
define('DIR_MODIFICATION', 'YOURSITE/system/modification/');
define('DIR_UPLOAD', 'YOURSITE/system/upload/');
OpenCart 2.1.0.2的正确路径.在这里,您需要在以下路径中添加/storage/
.(对config.php文件进行前人和管理员管理)
Correct Path for OpenCart 2.1.0.2. Here, You will need to add /storage/
in following path. (front & admin both config.php file)
define('DIR_CACHE', 'YOURSITE/system/storage/cache/');
define('DIR_DOWNLOAD', 'YOURSITE/system/storage/download/');
define('DIR_LOGS', 'YOURSITE/system/storage/logs/');
define('DIR_MODIFICATION', 'YOURSITE/system/storage/modification/');
define('DIR_UPLOAD', 'YOURSITE/system/storage/upload/');
希望这对您有所帮助.
这篇关于警告并在管理员修改页面OpenCart 2.1.0.2中出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!