WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Plugin: WordPress SEO by Yoast] Out of memory when trying to rebuild sitemap or publish a post

[Plugin: WordPress SEO by Yoast] Out of memory when trying to rebuild sitemap or publish a post

  • Viviendo

    @viviendo

    When I try to rebuild my sitemap or just recently when I want to publish a post, I receive the following error message.

    Fatal error: Out of memory (allocated 49807360) (tried to allocate 35 bytes) in /home/viviendo/public_html/bellabambini.com/wp-content/plugins/wordpress-seo/sitemaps/xml-sitemap-class.php on line 140

    Thanks for your help.

    Marilyn

Viewing 1 replies (of 1 total)
  • Try putting this in your installation’s wp-config.php file (in the root folder of your WP install).

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

    If there is already a WP_MEMORY_LIMIT line in the file, change the # next to LIMIT to 64M

    No guarantee this will work. It depends on how your server is configured but this is the easiest place to start.

    There is not enough memory allocated for PHP on each page load for all the processing that is going on. Based on the error message you seem to be set to 48 megs. This increases that to 64 megs, if it works.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Out of memory when trying to rebuild sitemap or publish a post’ is closed to new replies.
Skip to toolbar