Home>Support>WooCommerce Issue

WooCommerce Issue

By PTP, 10 years ago. Last reply by Andrew Misplon, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

This theme [Vantage] says it is compatible with WooCommerce. I installed the plugin and went to activate it, but when activated I get this memory error message as I try to do things throughout the site:

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 122880 bytes) in …../wp-content/plugins/woocommerce/includes/admin/post-types/class-wc-admin-cpt-shop_coupon.php on line 158

This is what is on line 158:

				$usage_limit = esc_html( get_post_meta($post->ID, 'usage_limit', true) );

I tried WooCommerce support first, and by my interpretation the discussion threads said to add these to wp-config.php:

define( 'WP_MEMORY_LIMIT', '64M' );
define('WP_CACHE', true);

This did not resolve the problem.

I am able to edit things when WooCommerce is deactivated without the memory error. I have not even begun to do anything with the WooCommerce plugin so I don’t understand why I am getting this error.

Can you help me?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 11 months ago PTP

    To add to this, I just did an experiment and when I switch to the generic 2012 WordPress theme, the error goes away and I am able to make changes. When I switch back to the Vantage theme, the changes I made stick.

    Some things that have been blocked by activating the WooCommerce plugin while the Vantage theme is activated include:
    adding menus
    adding post categories
    adding WooCommerce categories

  2. 10 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Hi PTP

    Thanks for running Vantage.

    With WooCommerce activated head to Settings > Page Builder and de-activate Page Builder for WooCommerce post types. Let me know if that helps.

  3. 10 years, 11 months ago PTP

    Hi Andrew,

    I went to Settings > Page Builder but I didn’t see anything specific to WooCommerce there. I can confirm that my WooCommerce plugin is activated.

    Any other thoughts?

  4. 10 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    With WooCommerce activated (there should then be a WooCommerce item in your main WordPress menu) head to Settings > Page Builder. Under Post Types you should then see:

    Products
    Variations
    Orders
    Coupons

    Un-check all of those options if they aren’t already un-checked.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More