安装了Fecshop-2.0.1版本,服务器配置了open_basedir防跨站。
appadmin后台报错:
file_exists(): open_basedir restriction in effect. File(/etc/config.php) is not within the allowed path(s): (/www/web/fecshop/:/usr/lib/php/:/tmp/)
解决方案:
修改文件第34行 /fecshop/vendor/fancyecommerce/fec/AdminModule.php
$config_file_dir = $this->_currentDir . '/etc/config.php';
/etc/config.php,/前面加"."
$config_file_dir = $this->_currentDir . './etc/config.php';