Prestashop添加产品超时

时间:2016-09-05 12:32:37

标签: smarty prestashop prestashop-1.6

我希望通过后台添加产品。但是,当我去添加产品时,这就出现了。

"A server error occurred while loading the tabs: some tabs could not be loaded.
Please try again by refreshing the page.
If you are still encountering this problem, please check your server logs or contact your hosting provider for assistance."

让我感到惊讶的是,当我们看到网络时,即使我的max_execution_time为60秒,脚本也会在30秒后被取消(不是500错误)。

enter image description here

因此,我搜索到我的服务器日志,我发现了这一点,但我不认为它是相关的。

[Mon Aug 01 10:11:03.852933 2016] [:error] [pid 30238] [client 192.168.122.117:60428] PHP Notice:  Undefined index: nbItemsPerLine in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 49

[Mon Aug 01 10:11:03.852974 2016] [:error] [pid 30238] [client 192.168.122.117:60428] PHP Notice:  Trying to get property of non-object in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 49

[Mon Aug 01 10:11:03.853026 2016] [:error] [pid 30238] [client 192.168.122.117:60428] PHP Warning:  math: function call nbItemsPerLine not allowed in /var/www/html/tools/smarty/plugins/function.math.php on line 53
[Mon Aug 01 10:11:03.853053 2016] [:error] [pid 30238] [client 192.168.122.117:60428] PHP Notice:  Undefined index: nbItemsPerLineTablet in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 51

[Mon Aug 01 10:11:03.853063 2016] [:error] [pid 30238] [client 192.168.122.117:60428] PHP Notice:  Trying to get property of non-object in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 51
[Mon Aug 01 10:11:03.853085 2016] [:error] [pid 30238] [client 192.168.122.117:60428] PHP Warning:  math: function call nbItemsPerLineTablet not allowed in /var/www/html/tools/smarty/plugins/function.math.php on line 53

我有点失落你知道我该如何解决这个问题吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

这些警告是否会产生任何实际问题(例如购物车问题等)?

如果没有,那么只需关闭PrestaShop错误报告,这些只是通知,可以忽略。

仅供参考,要启用禁用调试,您可以按照以下步骤操作。

  • 打开文件:config / defines.inc.php(使用FTP或托管控制面板)

  • 更改为true - > false:

定义(' _PS_MODE_DEV _',true);

定义(' _PS_MODE_DEV _',false);