【发布时间】:2016-09-05 12:32:37
【问题描述】:
感谢后台,我想添加一个产品。但是,当我去添加一个产品时,它出现了。
"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."
令我惊讶的是,当我们查看网络时,脚本在 30 秒后被取消(不是 500 错误),即使我的 max_execution_time 是 60 秒。
因此,我搜索了我的服务器日志并找到了这个,但我认为它不相关。
[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
我有点迷茫,你知道我该如何解决这个问题吗?
谢谢!
【问题讨论】:
-
您确定 max_execution_time 设置为 60 吗?在后台转到
Advanced Parameters>Configuration Information并在server information下打印最大执行时间。
标签: smarty prestashop prestashop-1.6