Error when deleting a user.

Home Forums WordPress Themes Acoustics Error when deleting a user.

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #370
    zaklp
    Participant

    I delete a user on the admin dashboard:

    And when I go through this process I am told I have a vital error:

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with your theme, Acoustics.

    Please contact your host for assistance with investigating this issue further.

    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.13

    Error Details
    =============
    An error of type E_ERROR was caused in line 377 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:377
    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(58242)
    #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…’, 58242)
    #11 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-manager.php(898): wp_delete_post(58242)
    #12 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(290): WC_Subscriptions_Manager::trash_users_subscriptions(173503473)
    #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’, 173503473, NULL)
    #16 /wordpress/core/5.3.2/wp-admin/users.php(196): wp_delete_user(173503473)
    #17 {main}
    thrown

    #372
    CodeGearThemes
    Keymaster

    Hi Zaklp,

    Can you please send the login details of your website?
    You can send in our email

    Thank you!

    #375
    CodeGearThemes
    Keymaster

    The above error is due to custom code added in function.php files please check those code there might be an error in function wpglorify_change_role_on_purchase.
    Please contact your developer. If you want our developer’s help please let us know.

    Note:
    Please consider using the child theme.

    #376
    zaklp
    Participant

    What Is a child theme?

    #377
    CodeGearThemes
    Keymaster

    Please check the article here about the child theme.

    #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

    #385
    CodeGearThemes
    Keymaster

    Please replace the current theme with a fresh Acoustic theme file.

    #386
    zaklp
    Participant

    How often do I need to download and replace the Acoustic theme file?

    Why would downloading and reinstalling the theme help?

    • This reply was modified 2 years, 5 months ago by zaklp.
    #388
    CodeGearThemes
    Keymaster

    As you have added code in theme functions.php files it’s giving you an error. Please add fresh theme files and create a new child theme for any modification. The above error are from custom code you have added in functions.php of the theme. You can check the error at 412 line number hope it helps.

    #390
    zaklp
    Participant

    By updating the theme does this remove the custom code?

    #391
    CodeGearThemes
    Keymaster

    yes, it will remove all custom code.

    #392
    zaklp
    Participant

    Can I return to the old theme to get back the custom code?

    #393
    CodeGearThemes
    Keymaster

    Please keep backup of the current theme if you need any custom code in it.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.