• I have tried making the usual adjustments to the php.ini file and I am still getting the error below. The site is also failing to show the posts on the main homepage.

    This is the message I am getting on the homepage.

    Fatal error: Out of memory (allocated 90439680) (tried to allocate 524288 bytes) in /home1/customj1/public_html/wp-includes/wp-db.php on line 636

    I’m also getting the following error on the Dashboard next to WP Stats.

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /home1/customj1/public_html/wp-includes/post.php on line 2931

    Also have iFlex theme installed and this is not functioning correctly, refusing to put widgets where they should go. (a product of the same error?)

    Your help is very much appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would make a info.php file with the following code:

    <?php
    phpinfo();
    ?>

    Put it in the same directory as your WordPress files and run it in your browser. Verify the Loaded Configuration File setting to make sure it’s using the PHP.INI file you think it should be, and then also look for the memory_limit value to see if it’s what you expect.

    Thread Starter ccm

    (@ccm)

    Thanks have checked:

    Load Configuration is:

    /home1/customj1/public_html/php.ini

    Memory Limit is:

    200M.. probably too much as I have been playing with it?

    Thread Starter ccm

    (@ccm)

    Also couldn’t get upgrade to 2.7 working so have exported xml file (203MB) and think that I’ll start with a vanilla installation on 2.7

    Is the size of the xml output file significant in the memory issues?

    Mmmmm.. maybe, but having never exported/imported a database.. not sure. Even then, my database is only 1.2MB in size as a SQL dump.

    I wouldn’t think WordPress would try to load the entire XML file into memory at once.

    If your database is under the allowed php.ini setting upload_max_filesize, then you won’t be able to import it. I’m not sure how well it will handle that large of a database even if you do increase the limit to 210M or something like that. If you have access to SSH through your host and can make an .sql backup of your database importing it through the command line would be a lot better, IMO.
    If your php.ini file is in the correct directories then the memory_limit increase should fix the above problems. I’m not sure why it isn’t but it could be a theme or plugin problem. Try disabling all your plugins and your theme and see if that fixes it. If it does, re-enable them one by one until you find the culprit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error: Out of Memory – Usual tricks not working’ is closed to new replies.