Title: [Plugin: WP e-Commerce] Memory Limit Fatal Error
Last modified: August 19, 2016

---

# [Plugin: WP e-Commerce] Memory Limit Fatal Error

 *  [vividlilac](https://wordpress.org/support/users/vividlilac/)
 * (@vividlilac)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/)
 * 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/](http://wordpress.org/extend/plugins/wp-e-commerce/)

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

 *  [Gestroud](https://wordpress.org/support/users/gestroud/)
 * (@gestroud)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1350557)
 * 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.
 *  Thread Starter [vividlilac](https://wordpress.org/support/users/vividlilac/)
 * (@vividlilac)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1350574)
 * Awesome!! Thank you very much gestroud, that worked perfectly!
 *  [Gestroud](https://wordpress.org/support/users/gestroud/)
 * (@gestroud)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1350589)
 * Glad I could help
 *  [skillsworkshops](https://wordpress.org/support/users/skillsworkshops/)
 * (@skillsworkshops)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1351045)
 * gestroud,
 * Thank you so much. You are my hero.
 *  [superoreh](https://wordpress.org/support/users/superoreh/)
 * (@superoreh)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1351060)
 * Worked for me too!!! 🙂 My wp-config.php didn’t have that line. I just paste:
   `
   define('WP_MEMORY_LIMIT', '96M');`
 *  [DrLightman](https://wordpress.org/support/users/drlightman/)
 * (@drlightman)
 * [16 years ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1351080)
 * Very useful trick, it fixed the same problem for me.
    Thanks.

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

The topic ‘[Plugin: WP e-Commerce] Memory Limit Fatal Error’ is closed to new replies.

## Tags

 * [php.ini](https://wordpress.org/support/topic-tag/php-ini/)
 * [wp-load](https://wordpress.org/support/topic-tag/wp-load/)

 * 6 replies
 * 5 participants
 * Last reply from: [DrLightman](https://wordpress.org/support/users/drlightman/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-memory-limit-fatal-error/#post-1351080)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
