WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Out of memory when trying to rebuild sitemap or publish a post (2 posts)

  1. Viviendo
    Member
    Posted 3 years ago #

    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

  2. stvwlf
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic