Forums

[Plugin: WP e-Commerce] Memory Limit Fatal Error (7 posts)

  1. vividlilac
    Member
    Posted 2 years ago #

    Hello, I recently set up a page that calls wp-load.php outside of WordPress and it worked fine, until recently (perhaps after a WP upgrade).

    Now I am receiving an fatal error saying that the allowed memory size has been exhausted. I bumped up the memory_limit from 64M to 128 and added a php.ini file to the 'wp-e-commerce' and 'shipping' directories just to see if that helped anything, but all it did was change what file it said was causing the problem.

    The first error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /my_path/wp-content/plugins/wp-e-commerce/shipping/usps.php on line 161

    The second error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /my_path/wp-content/plugins/wp-e-commerce/merchants/paypal_pro.php on line 120

    If I access any page on my actual WP site, I have no error messages, it is only when I try to use my Outside WP page that I keep getting this error.

    Does anyone have any ideas of how I can get around this?

    Thank you in advance for any feedback!

    WP: 9.2.1
    WP E-Commerce: 3.7.5.3
    PHP: 5.2.11

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. gestroud
    Member
    Posted 2 years ago #

    Go to wp-config.php and look for something like "define('WP_MEMORY_LIMIT', '64M');" (the number could be different).

    If it isn't there, add it. You may have to increase the number, but I wouldn't go above 128M.

  3. vividlilac
    Member
    Posted 2 years ago #

    Awesome!! Thank you very much gestroud, that worked perfectly!

  4. gestroud
    Member
    Posted 2 years ago #

    Glad I could help

  5. skillsworkshops
    Member
    Posted 2 years ago #

    gestroud,

    Thank you so much. You are my hero.

  6. superoreh
    Member
    Posted 2 years ago #

    Worked for me too!!! :) My wp-config.php didn't have that line. I just paste:
    define('WP_MEMORY_LIMIT', '96M');

  7. DrLightman
    Member
    Posted 2 years ago #

    Very useful trick, it fixed the same problem for me.
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic