The plugin Auto Prune Post is causing a fatal beug in combinaition with Woocommerce’s plugin “Woocommerce Subscriptions” . Here is the detail of the error :
Error Details
=============
An error of type E_ERROR was caused in line 86 of the file /homepages/4/d548994314/htdocs/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/wcs-functions.php. Error message: Uncaught Error: Call to a member function get_order() on null in /homepages/4/d548994314/htdocs/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/wcs-functions.php:86
Stack trace:
#0 /homepages/4/d548994314/htdocs/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-manager.php(906): wcs_get_subscription()
#1 /homepages/4/d548994314/htdocs/wp-includes/class-wp-hook.php(326): WC_Subscriptions_Manager::maybe_cancel_subscription()
#2 /homepages/4/d548994314/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /homepages/4/d548994314/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /homepages/4/d548994314/htdocs/wp-includes/post.php(3626): do_action()
#5 /homepages/4/d548994314/htdocs/wp-includes/post.php(3412): wp_trash_post()
#6 /homepages/4/d548994314/htdocs/wp-content/plugins/auto-prune-posts/auto-prune-posts.php(363): wp_delete_post()
#7 /homepages/4/d548994314/htdocs/wp-content/plugins/auto-prune-posts/auto-prune-posts.php(325): plugin_auto_prune_posts->delete_post_and_attachments()
#8 /homepages/4/d548994314/htdocs/wp-content/plugins/auto-prune-posts/auto-prune-posts.php(377): plugin_auto_prune_posts->prune()
#9 /homepages/4/d548994314/htdocs/wp-includes/class-wp-hook.php(324): plugin_auto_prune_posts_activation()
#10 /homepages/4/d548994314/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#11 /homepages/4/d548994314/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#12 /homepages/4/d548994314/htdocs/wp-settings.php(621): do_action()
#13 /homepages/4/d548994314/htdocs/wp-config.php(88): require_once(‘/homepages/4/d5…’)
#14 /homepages/4/d548994314/htdocs/wp-load.php(50): require_once(‘/homepages/4/d5…’)
#15 /homepages/4/d548994314/htdocs/wp-login.php(12): require(‘/homepages/4/d5…’)
#16 {main}
thrown