• Resolved Alex

    (@hds7)


    This started happening yesterday, prior to the latest WP update to 4.5. So I know it’s not a 4.4 or 4.5 related issue.
    When I open a draft post to edit it, all my text appears in white (unable to be seen unless highlighted), all my tags are gone, I am unable to change from visual to text mode and I get the following error in the “revisions” section all the way at the bottom:

    “Fatal error: Out of memory (allocated 198967296) (tried to allocate 164271 bytes) in /nfs/c06/h04/mnt/93327/domains/abridgedpause.com/html/wp-includes/wp-db.php on line 1772”

    I did some research and changed the limit in the .htaccess file as well as the wp-config file and both did nothing at all.

    I looked up line 1772 in wp-dp.php and it doesn’t seem to have anything at all to do with size limits:

    }
    			} elseif ( is_resource( $this->result ) ) {
    				while ( $row = mysql_fetch_object( $this->result ) ) {
    					$this->last_result[$num_rows] = $row;
    					$num_rows++;
    				}

    Does anyone know what this is about and what I need to do? I cannot edit this post in particular at all. From the looks of it it’s only happening with this particular post but I haven’t had time to go through my hundreds of others to try to reproduce it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Otherwise, here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 64 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 128MB)

    Thread Starter Alex

    (@hds7)

    Thanks James! I always underestimate the trouble that plugins can cause. Each time it seems to be in relation to one of them, no matter how innocent they seem. In this case I found out that “XML Sitemap & Google News feeds by RavanH” was causing this error. Thanks again for coming to my rescue!

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Out of memory when opening a draft post’ is closed to new replies.