![](/img/trans.png)
[英]Why am I getting this error? Fatal error: Class 'TestCase' not found
[英]Why am I getting a fatal memory error on 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
站点地图链接: https : //dooiz.com/sitemap_index.xml
答案其实很明显。 您必须增加您的网站空间的内存限制。
在调试行下的 wp-config 中写入:
define( 'WP_MEMORY_LIMIT', '512M' );
您也可以尝试在 .htaccess 文件中编写以下内容
php_value memory_limit 512M
或者询问您的网络空间提供商如何以及是否可以增加内存限制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.