【问题标题】:Prestashop add a product timeoutPrestashop 添加产品超时
【发布时间】: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


【解决方案1】:

这些警告是否会造成任何实际问题(即购物车问题等)?

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

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

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

  • 改变真-->假:

定义('_PS_MODE_DEV_', true);

定义('_PS_MODE_DEV_', false);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-09
    • 2017-09-26
    • 2022-06-10
    • 1970-01-01
    • 2015-10-19
    • 1970-01-01
    相关资源
    最近更新 更多