Prestashop:../../../classes/Configuration.php中的内存不足(已分配...) [英] Prestashop: Out of Memory (allocated ...) in ../../../classes/Configuration.php

查看:71
本文介绍了Prestashop:../../../classes/Configuration.php中的内存不足(已分配...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Prestashop突然出现 http 500错误.我打开了错误日志并得到了:

Prestashop suddenly gives an http 500 error. I turned on error log and got this:

致命错误:内存不足(已分配709623808)(试图分配 130968字节)中 /var/www/vhosts/44/252639/webspace/httpdocs/shop.mywebsite.com/classes/Configuration.php 在206行上."

"Fatal error: Out of memory (allocated 709623808) (tried to allocate 130968 bytes) in /var/www/vhosts/44/252639/webspace/httpdocs/shop.mywebsite.com/classes/Configuration.php on line 206".

我仔细检查了第206行的Configuration.php,它只是一个标准的prestashop文件,没有任何奇怪的内容.毕竟这是内存不足"错误,所以也许我应该增加内存.

I double checked the Configuration.php on line 206 and it's just a standard prestashop file, nothing weird in it. After all it's an "Out of memory" error so maybe I should increase memory.

phpinfo()显示memory_limit 1024M,这已经很多了,但是也许我应该尝试2048M.我试图创建一个新的自定义php.ini,但没有成功,因为(根据phpinfo)会在以下目录中搜索已加载的ini文件:/opt/alt/php56/etc.

phpinfo() shows memory_limit 1024M, which is already pretty much, but maybe I should try 2048M. I tried to create a new custom php.ini but that did not work, because (according to phpinfo) the loaded ini file is searched in this directory: /opt/alt/php56/etc.

我的托管服务提供商不允许我对其进行编辑,它是只读的.

My hosting provider does not allow me to edit it, it's read only.

我该怎么做才能解决问题?

What could I do to solve the problem ?

我还没有备份.

推荐答案

我已修复它.它与没有足够的内存或任何东西无关.有人创造了一个产品并导致了错误,我不知道到底是什么,但是将来对所有人来说:

I fixed it. It had nothing to do with not having enough memory or whatever. Someone created a product and that caused errors, I don't know what exactly but for everyone in the future:

  • 创建备份
  • 关闭第三方模块
  • 删除所有产品
  • 删除缓存 等等.直到您的网页再次正确加载-> 之后,还原您的备份,然后删除导致错误的原因.
  • Create a backup
  • Turn off third party modules
  • Delete all products
  • Delete cache etc etc. until your webpage loads correctly again -> after that, restore your backup and just delete what caused the error.

希望它会起作用.

这篇关于Prestashop:../../../classes/Configuration.php中的内存不足(已分配...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆