I get the following error when I try to open the sitemap.xml of my WordPress blog:
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
Link to the Sitemap: https://dooiz.com/sitemap_index.xml
The answer is actually pretty obvious. You have to increase the memory limit of your webspace.
Write this in your wp-config under the debug line:
define( 'WP_MEMORY_LIMIT', '512M' );
you could also try writing the following in the .htaccess file
php_value memory_limit 512M
Or ask your webspace provider how and if you can increase the memory limit.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.