我已将我的prestashop转移到新服务器,基本上我是新手使用日志,所以我很感激帮助理解它说我要做的事。
Presta商店在迁移后运行良好我遇到1个模块的问题,x13allegro在尝试更新该模块时,日志会给我这样的消息:
[Thu Sep 28 21:14:32.005609 2017] [:error] [pid 10361] [client 194.28.220.210:61470] PHP Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/srv_obuwie-wenecja_pl:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/srv_obuwie-wenecja_pl/modules/x13allegro/classes/php5/XAllegroUpdate.php on line 0, referer: http://srv.obuwie-wenecja.pl/admin3525/index.php?controller=AdminXAllegroConfiguration&token=da55688d9eea9e289f7f23c0e76813ec&update_module
[Thu Sep 28 21:14:32.005798 2017] [:error] [pid 10361] [client 194.28.220.210:61470] PHP Warning: file_put_contents(): Filename cannot be empty in /var/sentora/hostdata/zadmin/public_html/srv_obuwie-wenecja_pl/modules/x13allegro/classes/php5/XAllegroUpdate.php on line 0, referer: http://srv.obuwie-wenecja.pl/admin3525/index.php?controller=AdminXAllegroConfiguration&token=da55688d9eea9e289f7f23c0e76813ec&update_module
[Thu Sep 28 21:14:32.005825 2017] [:error] [pid 10361] [client 194.28.220.210:61470] PHP Warning: ZipArchive::open(): Empty string as source in /var/sentora/hostdata/zadmin/public_html/srv_obuwie-wenecja_pl/modules/x13allegro/classes/php5/XAllegroUpdate.php on line 0, referer: http://srv.obuwie-wenecja.pl/admin3525/index.php?controller=AdminXAllegroConfiguration&token=da55688d9eea9e289f7f23c0e76813ec&update_module
答案 0 :(得分:0)
如您所见:tempnam():open_basedir限制生效
检查您的PHP设置并更改open_basedir设置(您可以将其设置为' none')。
请参阅:
http://php.net/manual/en/ini.core.php#ini.open-basedir
你清除缓存了吗?如果没有,请清除它。另外,请查看this文章。