Reply To: Error when deleting a user.

Home Forums WordPress Themes Acoustics Error when deleting a user. Reply To: Error when deleting a user.

#383
zaklp
Participant

Now I Have this?

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.3.2
Current theme: Acoustics (version 1.0.9)
Current plugin: (version )
PHP version 7.3.14

Error Details
=============
An error of type E_ERROR was caused in line 412 of the file /srv/htdocs/wp-content/themes/acoustics/functions.php. Error message: Uncaught Error: Call to a member function get_var() on null in /srv/htdocs/wp-content/themes/acoustics/functions.php:412
Stack trace:
#0 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): change_user_role_on_subscription_expired(Object(WC_Subscription))
#1 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#2 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscription.php(552): do_action(‘woocommerce_sub…’, Object(WC_Subscription))
#4 /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-order.php(221): WC_Subscription->status_transition()
#5 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscription.php(511): WC_Order->save()
#6 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-manager.php(846): WC_Subscription->update_status(‘cancelled’)
#7 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): WC_Subscriptions_Manager::maybe_cancel_subscription(67674)
#8 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#9 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#10 /wordpress/core/5.3.2/wp-includes/post.php(2975): do_action(‘before_delete_p…’, 67674)
#11 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-manager.php(898): wp_delete_post(67674)
#12 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(290): WC_Subscriptions_Manager::trash_users_subscriptions(173503482)
#13 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#14 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#15 /wordpress/core/5.3.2/wp-admin/includes/user.php(367): do_action(‘delete_user’, 173503482, NULL)
#16 /wordpress/core/5.3.2/wp-admin/users.php(196): wp_delete_user(173503482)
#17 {main}
thrown