2015-08-15 13 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