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?
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
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.
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?
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.