• Resolved Russ

    (@gfxdesigner)


    After installing version 3.14, a WordPress site I am working on (running PHP 8.1) experiences a fatal error that prevents access to the admin panel. I was able to revert it to 3.13.2 and all is well again. Here’s the error details:

    [05-Oct-2024 02:23:08 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “add_links” not found or invalid function name in /home/xyz/public_html/wp-includes/class-wp-hook.php:326
    Stack trace: 0 /home/xyz/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 1 /home/xyz/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-callables.php(405): apply_filters(‘plugin_action_links’, Array, ‘markup-by-attribute’, NULL, ‘all’) 2 /home/xyz/public_html/wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Sync\Modules\Callables->set_plugin_action_links(Object(WP_Screen)) 3 /home/xyz/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 4 /home/xyz/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 5 /home/xyz/public_html/wp-admin/includes/class-wp-screen.php(424): do_action(‘current_screen’, Object(WP_Screen)) 6 /home/xyz/public_html/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen() 7 /home/xyz/public_html/wp-admin/admin.php(212): set_current_screen() 8 /home/xyz/public_html/wp-admin/index.php(10): require_once(‘/home/xyz/public_html/wp-admin/admin.php’) 9 {main}
    thrown in /home/xyz/public_html/wp-includes/class-wp-hook.php on line 326

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have same. Temporary fix is to edit markup-by-attribute-for-woocommerce.php file

    There are two instances of

    add_filter(“plugin_action_links” …..

    Find both and comment them out for now

    Rudolf

    Plugin Author Mark Tomlinson

    (@marktomlinson)

    I’ll push out a temporary patch right away.

    EDIT: Found it — missing namespace. In my test setup, this only affected the display of the plugins page. Sorry to hear about your experience.

    Version 3.14.1 is the temporary fix version. I’ll be pushing version 3.14.2 out tomorrow after I make sure there aren’t any other undetected issues. So far, the debug.log is empty.

    Plugin Author Mark Tomlinson

    (@marktomlinson)

    Version 3.14.2 is out, and the issue should be resolved.

    Thread Starter Russ

    (@gfxdesigner)

    Thanks!

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