Php 为什么我在WordPress上遇到致命的内存错误?
尝试打开WordPress博客的sitemap.xml时出现以下错误: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 链接到站点地图:答案其实很明显
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的内存可能不够。