• Resolved juventino-40

    (@juventino-40)


    Hello everyone!

    When I update any plugin or theme I get an error in the site logs:

    [10-Dec-2025 18:37:25 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, array callback must have exactly two members in /var/www/user/data/www/site.com/wp-includes/class-wp-hook.php:324
    Stack trace:
    0 /var/www/user/data/www/site.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    1 /var/www/user/data/www/site.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    2 /var/www/user/data/www/site.com/wp-admin/includes/class-plugin-upgrader.php(412): do_action(‘upgrader_proces…’, Object(Plugin_Upgrader), Array)
    3 /var/www/user/data/www/site.com/wp-admin/includes/ajax-actions.php(4650): Plugin_Upgrader->bulk_upgrade(Array)
    4 /var/www/user/data/www/site.com/wp-includes/class-wp-hook.php(324): wp_ajax_update_plugin(”)
    5 /var/www/user/data/www/site.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    6 /var/www/user/data/www/site.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    7 /var/www/user/data/www/site.com/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_update-…’)
    8 {main} thrown in /var/www/user/data/www/site.com/wp-includes/class-wp-hook.php on line 324

    So I don’t see any information about theme or plugin that created the problem. I tried to switch theme to default / deactivate plugins – no luck.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    In fact, one of the plugins you are using will be responsible for this. If you have any pending updates, deactivate all plugins and then install the update. If you have any Must Use Plugins, remove these as well (via FTP). I suspect the update will then run.

    To find out which plugin is responsible, you could first check whether you have one that mentions plugin management in its description. If you don’t have one, you can also activate them one by one until you find the culprit. And yes, that can be a bit annoying 😐

    1. Check for Plugin Conflicts

    • Go to your wp-content folder.
    • Rename the plugins folder (example: plugins-old).
    • This will temporarily deactivate all plugins.
    • If the issue is fixed, then the problem is coming from a plugin.
    • Now rename the folder back to plugins, then activate plugins one by one.
    • When the issue appears again, you’ve found the problematic plugin. You can safely remove or replace it.

    2. Check for Theme Conflicts

    • If the problem still exists after disabling all plugins, go to the themes folder.
    • Rename your active theme’s folder.
    • WordPress will automatically switch to a default theme (like Twenty Twenty-Five).
    • If the issue disappears, then the problem is in your theme.

    This process should help you trace the exact cause — whether it’s a plugin or theme conflict — and resolve the issue.

    Thread Starter juventino-40

    (@juventino-40)

    Thank you guys! I found the problematic plugin and after removing it everything started working correctly.

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

You must be logged in to reply to this topic.