All Topics
Fatal error – undefined method get_coupon_codes in CouponsUsed.php
Hello,
I have just updated to ACP 4.7.2 and it seems all is fine afterwards. Next, I tried updating the WooCommerce addon plugin from v3.3.2 to v3.3.6, which resulted in:
[07-Oct-2019...] PHP Fatal error: Uncaught Error: Call to undefined method WC_Order::get_coupon_codes() in ...public_html/live/wp-content/plugins/ac-addon-woocommerce/classes/Column/ShopOrder/CouponsUsed.php:53
Stack trace:
#0 ...public_html/live/wp-content/plugins/ac-addon-woocommerce/classes/Column/ShopOrder/CouponsUsed.php(32): ACA\WC\Column\ShopOrder\CouponsUsed->get_raw_value(11228)
#1 ...public_html/live/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen.php(892): ACA\WC\Column\ShopOrder\CouponsUsed->get_value(11228)
#2 ...public_html/live/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListScreen/Post.php(63): AC\ListScreen->get_display_value_by_column_name('5a9aaf4697c25', 11228)
#3 ...public_html/live/wp-includes/class-wp-hook.php(286): AC\ListScreen\Post->manage_value('5a9aaf4697c25', 11228)
#4 ...public_html/live/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 ...public_html/live/wp-includes/p in ...public_html/live/wp-content/plugins/ac-addon-woocommerce/classes/Column/ShopOrder/CouponsUsed.php on line 53
I the admin, only one list item is shown nad all the others are not displayed, probably because that is when the fatal error occures.
Running WordPress 5.1.1, WooCommerce 3.5.8 and Admin Columns Pro 4.7.2.
Please advise,
NG
You must be logged in to reply to this topic.