WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Memory error even with 128M allocated (7 posts)

  1. draskers
    Member
    Posted 1 year ago #

    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/

  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. draskers
    Member
    Posted 1 year ago #

    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

  4. esmi
    Forum Moderator
    Posted 1 year ago #

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

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

  5. draskers
    Member
    Posted 1 year ago #

    Thanks for reassurance.

  6. draskers
    Member
    Posted 1 year ago #

    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

  7. draskers
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic