Support » Plugin: WooCommerce » Memory error even with 128M allocated

  • Resolved draskers

    (@draskers)


    Hi, I’m hoping someone can help as i’m struggling with a memory error when adding or removing items from the WooCommerce cart page. The error displayed is:

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /home/thekitch/public_html/wp-includes/formatting.php on line 940

    I have configured the WordPress file: wp-config.php with the following code on line 36/37:

    /** Memory Limit */
    define('WP_MEMORY_LIMIT', '128M');

    When checking the WooCommerce/System Status the WP Memory Limit is set correctly showing 128MB.

    I’m on WooCommerce version 2.0.13 and use a theme called Sold! My site, if needed is http://www.thekitchenshelf.co.uk

    Looking forward to hearing people thoughts – especially on the “formatting.php on line 940” part which I really don’t understand.

    Many thanks, David

    http://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Forum Moderator

    This is usually a site issue – not a plugin specific one. Try increasing the memory available to PHP.

    Thanks,

    I think I’ll have to ask my host as I can’t seem to find the PHP.ini file.

    Is the “formatting.php on line 940” anything to worry about?

    I’ll let you know how i get on tomorrow.

    David

    esmi

    (@esmi)

    Forum Moderator

    Is the “formatting.php on line 940” anything to worry about?

    No. This is a memory issue – pure & simple.

    Thanks for reassurance.

    Thanks for all the help so far – my hosts have today increased the memory in the PHP.ini to 256M, and I’ve updated the wp-config.php file accordingly.

    This seems to have reduced the frequency of the “Fatal error” warnings, but is not preventing it altogether.

    My hosts have suggested there maybe bug in the theme I’m using, so I am just about to email the authors now.

    If anyone thinks I’ve missed something, please let me know.

    Thanks, David

    Hi, Just to update everyone this issue has now been resolved.

    The memory increase to 256 reduced the frequency of the fatal errors, but to stop the errors occurring permanently, I also had to clear the “expired transients” from WooCommerce/system status/tools.

    Thanks for everyones help. David

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Memory error even with 128M allocated’ is closed to new replies.