• I used Crontrol to investigate an issue. It helped and thanks for that.

    I left it active and started getting repeat sequences of the following when running Backwpup:

    [13-Feb-2023 14:05:52 UTC] PHP Fatal error: Uncaught Error: Unknown named parameter $arg in /homepages/0/d894882115/htdocs/clickandbuilds/HaylingU3A/wp-includes/class-wp-hook.php:308
    Stack trace:
    #0 /homepages/0/d894882115/htdocs/clickandbuilds/HaylingU3A/wp-includes/class-wp-hook.php(340): WP_Hook->apply_filters('', Array)
    #1 /homepages/0/d894882115/htdocs/clickandbuilds/HaylingU3A/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #2 /homepages/0/d894882115/htdocs/clickandbuilds/HaylingU3A/wp-cron.php(188): do_action_ref_array('backwpup_cron', Array)
    #3 {main}
    thrown in /homepages/0/d894882115/htdocs/clickandbuilds/HaylingU3A/wp-includes/class-wp-hook.php on line 308

    On inspection the call_user_func_array call is passing callback: array( [function] => Crontrol\pauser, [accepted_args] => 1) with arguments: array( [arg]=>restart ).

    So it looks like you are adding an action to intercept cron activity which is running foul of PHP.

    Deactivating Crontrol eliminated the errors. Thought you’d want to know.

    Andy

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report! I’ll take a look.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    @andyhenderson The stack trace you’ve provided is very helpful thanks, but it doesn’t show anything from WP Crontrol. Can you confirm that the problem definitely disappears when WP Crontrol isn’t active?

    The error suggests that something is converting the arguments into named parameters (which happens when call_user_func_array() is used) but I can’t see anywhere specifically in WP Crontrol where that could happen.

    I’ll carry on investigating but if you can confirm if this definitely only happens when WP Crontrol is active that would be appreciated.

    Thread Starter AndyHenderson

    (@andyhenderson)

    The reference is in the callback on the call that creates the error: array( [function] => Crontrol\pauser, [accepted_args] => 1) as reported above.

    It doesn’t appear in the stack trace but was revealed when I caught the error and logged the problem parameters.

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

The topic ‘Fatal error under PHP 8.1’ is closed to new replies.