• Resolved sakib1999

    (@sakib1999)


    2024-09-11T06:18:16+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T06:23:13+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T06:29:02+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T06:58:09+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T06:58:14+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T06:59:12+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T07:01:11+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}
    2024-09-11T07:01:15+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WOO_Customer_Setting does not have a method "gscwoo_delete_user" in /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php:324 CONTEXT: {"error":{"type":1,"file":"/home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php","line":324},"backtrace":["","#0 /home/sameer/webapps/miche_admin/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()","#1 /home/sameer/webapps/miche_admin/wp-includes/plugin.php(517): WP_Hook->do_action()","#2 /home/sameer/webapps/miche_admin/wp-admin/includes/user.php(380): do_action()","#3 /home/sameer/webapps/miche_admin/wp-admin/users.php(211): wp_delete_user()","#4 {main}","thrown"]}

    I can’t delete Users from my wordpress backend please help me to resolve this issue.

    • This topic was modified 1 year, 7 months ago by sakib1999.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi ,

    Thank you for reaching out.

    I understand you’re having trouble deleting users from your WordPress backend.

    The error messages you’re seeing suggest that the system is trying to call a method ‘gscwoo_delete_user’ in the class ‘WOO_Customer_Setting’ which does not exist.

    Here are some steps you can try to troubleshoot this issue further:

    1. Deactivate all your plugins except WooCommerce and see if the problem persists. If the problem is resolved, reactivate your plugins one by one to identify the one causing the issue.
    2. Switch to a default WordPress theme, like Storefront or Twenty Twenty-Four. If this resolves the issue, the problem might be with your current theme.

    Remember to backup your site before making any changes. Please let me know how it goes.

    Hello @sakib1999

    Thank you for reaching out

    The call_user_func_array function is trying to invoke a method called gscwoo_delete_user, but it doesn’t exist in the class WOO_Customer_Setting. This typically happens when:

    A plugin is trying to hook into the delete_user action without correctly defining the callback function.

    The hook is incorrectly registered, or the plugin code is incomplete or outdated.

    To prevent this issue, we can manually remove the problematic hook that’s calling gscwoo_delete_user. You can add this code to your theme’s functions.php file or a custom plugin

    add_action(‘init’, function() {

    remove_action(‘delete_user’, ‘gscwoo_delete_user’);

    });

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Users can’t be deleted from wordpress backend’ is closed to new replies.