返回列表 发帖

急:wp多个地方提示memory size of 8388608 exhausted,请问如何解决?

进入管理页面提示:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /webhome/caozenghui.cn/web/www/wp-includes/class-snoopy.php on line 249

发表新文章提示:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /webhome/caozenghui.cn/web/www/wp-admin/menu.php on line 44

请问如何解决。我按某些兄弟写的,在index.php中加入了内存扩大的代码,但是无效。

非常感谢!

php.ini --> memory_limit

TOP

我以前的空间,也有这样的问题,我是在wp-config.php的文件增加如下一句:

ini_set('memory_limit', '-1');

位置如下:

<?php
ini_set('memory_limit', '-1');
// ** MySQL settings ** //

希望对你有用。

TOP

ls 方法不错,在本地测试应该可以这么用,哈哈

TOP

返回列表