2015-08-15 42 views
0

我有一个wordpress网站Yoast SEO插件。该插件生成我的sitemap_index.xml,但我不能访问他们中的一些。Yoast post_tag-网站地图给出错误500

我可以访问我的post-sitemap.xml和category-sitemap.xml。 但我无法访问我的标签XML(post_tag-sitemap.xml)。它给错误500

这是我eeror日志:


PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/******/public_html/wp-content/plugins/wordpress-seo/inc/class-sitemaps.php on line 439


我已经试图改变定义( 'WP_MEMORY_LIMIT', '64M');在我的wp-config.php中没有成功。 我已经尝试减少Yoast Sitemap插件中的项目数量,但没有成功。

有人可以帮助我吗?

回答

0

该解决方案与我完全woked几次:

if (!defined('WP_MEMORY_LIMIT')) define('WP_MEMORY_LIMIT','128M');

如果仍然面临的问题中加入这一行的wp-config.php文件:

define('WP_MEMORY_LIMIT', '64M');

如果保持出现在您的网站根目录(通常是www,public_html或htdocs文件夹)中创建php.ini文件并添加以下行:

memory_limit = 64MB

Goodluck。

来源WPAPI