ECshop2.7.3安装在本地环境WAMP,出现includes\init.php on line 120和162

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家

大家帮忙看看,到底是什么问题?
Warning: require(D:/wamp/www/ecshop/languages//common.php): failed to open stream: No such file or directory in D:\wamp\www\ecshop\includes\init.php on line 120
Fatal error: require(): Failed opening required 'D:/wamp/www/ecshop/languages//common.php' (include_path='.;D:/wamp/www/ecshop/') in D:\wamp\www\ecshop\includes\init.php on line 120

Warning: require(D:/wamp/www/ecshop/languages//admin/common.php): failed to open stream: No such file or directory in D:\wamp\www\ecshop\admin\includes\init.php on line 162
Fatal error: require(): Failed opening required 'D:/wamp/www/ecshop/languages//admin/common.php' (include_path='.;ROOT_PATH') in D:\wamp\www\ecshop\admin\includes\init.php on line 162

回答:
出现这种情况的99%主要原因是temp目录及temp/static_caches目录没有写权限,或者磁盘空间满导致ecshop启动时无法生成shop_config.php文件,ecshop在载入这个shop_config.php时变量$_CFG['lang']为空,无法载入语言项文件

当$_CFG['lang']为不为空时会载入
require(D:/wamp/www/ecshop/languages/zh_cn/common.php)
当$_CFG['lang']为空时,会出现

require(D:/wamp/www/ecshop/languages//common.php)

就会出现上1楼的错误,排除错误可以通过以下三种方式来解决:

1、temp及其子目录是否可写

2、磁盘空间是否已满

3、temp/static_caches/shop_config.php是否丢失了,或文件大小为零或者没有读取的权限

回复 2# ecshopkaifa [/

1、everyone权限全部都是打开的
2、我D盘还有8个G的空间
3、temp/static_caches/shop_config.ph没有这个文件,只有一个index.htm,原下载的压缩包就没有这个文件,这个怎么装进去。