Hello, we recently upgraded our server, and after the move, we are now getting the following error when trying to use
the WooCommerce Extended Coupon Features PRO, the error is displayed when trying to create a new coupon or even on already existing coupons.
Here is the error in total,
” Fatal error: Uncaught Error: Call to undefined method WP_Post::get_ID()
in /home/customer/www/wholeearthgifts.com/public_html/wp-content/plugins/perfect-woocommerce-brands/classes/admin/class-pwb-coupon.php on line 21
Call stack:
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::coupon_restriction()
wp-includes/class-wp-hook.php:309
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:331
WP_Hook::do_action()
wp-includes/plugin.php:476
do_action()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:282
WC_Meta_Box_Coupon_Data::output()
wp-admin/includes/template.php:1401
do_meta_boxes()
wp-admin/edit-form-advanced.php:688
require()
wp-admin/post-new.php:75″
Any help with this would be appreciated, please bear in mind that I am not a code guy, though if a change is simple I can do it.