“wc_coupons_enabled” corrupted
-
Hi,
Congratulation for the great plugin.
We are trying to work with your plugin but stuck at a difficult position, wp-admin dashboard getting blank.
Let me define the issue for you:
You have “WC()->cart->is_empty()” checking at “offers-for-woocommerce\public\class-offers-for-woocommerce.php on line 2082” at “woocommerce_coupons_enabled” filter.
We are trying to access “wc_coupons_enabled” for some checking but your plugin breaks with error “Fatal error: Uncaught Error: Call to a member function is_empty() on null in C:\wamp64\www\wcm\wp-content\plugins\offers-for-woocommerce\public\class-offers-for-woocommerce.php on line 2082”.
We have written our code under “is_admin()” but your code should be under “!is_admin()” as “WC()->cart” can not be accessable under “is_admin()”.
Hope we can make the issue clear to you.
Please fix this ASAP, otherwise users can’t use both plugins together.
Thank You
The topic ‘“wc_coupons_enabled” corrupted’ is closed to new replies.