I’ve just released a new version that removes all the recently added functionality. I haven’t been able to replicate any of the reported errors so in order to keep the plugin working properly I’ve just pulled those functions until I can troubleshoot it properly.
Many thanks, I have updated to the new version, and can confirm it’s no longer causing errors. I’ve also copied further details of the previous error below, in case it’s of any use in troubleshooting the cause
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.8.3
Active theme: Astra (version 4.11.15)
Current plugin: Purchase Orders for WooCommerce (version 1.12.1) PHP version 8.1.33
Error Details
=============
An error of type E_ERROR was caused in line 876 of the file /home/mx3pz7nq6pnl/public_html/wp-content/plugins/purchase-orders-for-woocommerce/class-purchase-order-gateway.php. Error message: Uncaught Error: Call to undefined method WP_Post::get_payment_method() in /home/mx3pz7nq6pnl/public_html/wp-content/plugins/purchase-orders-for-woocommerce/class-purchase-order-gateway.php:876
Stack trace:
#0 /home/mx3pz7nq6pnl/public_html/wp-includes/class-wp-hook.php(324): WC_Gateway_Purchase_Order->pofwc_save_purchase_order_meta()
#1 /home/mx3pz7nq6pnl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /home/mx3pz7nq6pnl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /home/mx3pz7nq6pnl/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(262): do_action()
#4 /home/mx3pz7nq6pnl/public_html/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes()
#5 /home/mx3pz7nq6pnl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /home/mx3pz7nq6pnl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/mx3pz7nq6pnl/public_html/wp-includes/post.php(5110): do_action()
#8 /home/mx3pz7nq6pnl/public_html/wp-includes/post.php(5212): wp_insert_post()
#9 /home/mx3pz7nq6pnl/public_html/wp-admin/includes/post.php(453): wp_update_post()
#10 /home/mx3pz7nq6pnl/public_html/wp-admin/post.php(227): edit_post()
#11 {main}
thrown