Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 为什么我在WordPress上遇到致命的内存错误?_Php_Wordpress - Fatal编程技术网

Php 为什么我在WordPress上遇到致命的内存错误?

Php 为什么我在WordPress上遇到致命的内存错误?,php,wordpress,Php,Wordpress,尝试打开WordPress博客的sitemap.xml时出现以下错误: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1052672 bytes) in /xxx/wp-content/plugins/wordpress-seo/inc/sitemaps/class-taxonomy-sitemap-provider.php on line 131 链接到站点地图:答案其实很明显

尝试打开WordPress博客的sitemap.xml时出现以下错误:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1052672 bytes) in /xxx/wp-content/plugins/wordpress-seo/inc/sitemaps/class-taxonomy-sitemap-provider.php on line 131

链接到站点地图:

答案其实很明显。您必须增加Web空间的内存限制

在调试行下的wp配置中写入以下内容:

定义“WP_内存限制”、“512M”; 您还可以尝试在.htaccess文件中写入以下内容

php_value memory_limit 512M

或者询问您的Web空间提供商如何以及是否可以增加内存限制。

我们如何知道发生了什么,而不看到任何代码?你是这个dooiz网站的开发者吗?如果你有很多要加载站点地图的项目,那么256M的内存可能不够。