• Resolved Andrew Comb

    (@tecazwebdev)


    Hi, On my site, when using the version 3.20.0 my site threw up a PHP error (8.3) when I looked in WP Crontrol, though I am not sure if it was the fault of that, because I looked in there because it mentioned my cron jobs had been disabled/stopped. I looked in there to see hundreds of new cron jobs had been spawned. I did a rollback on plugins, and activated them one by one, and found it seems to be Query monitor which is throwing the error. The mysterious part is I have another site, with near identical plugins, which is not throwing the error. I’m staying on 3.19.0 for the time being, as this is not throwing an error, killing cron and everything else is now up-to-date and functional.

    Let me know if you need more info, but I am understandably loath to update again, as it’s a live site in use.

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

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report @tecazwebdev 👍. What’s the error message please?

    Thread Starter Andrew Comb

    (@tecazwebdev)

    Uncaught Error: strpos(): Argument #1 ($haystack) must be of type string, null given in /xxxx/wp-content/plugins/query-monitor/output/Html.php on line 505 Call stack: strpos(NULL, ‘{closure:/’) wp-content/plugins/query-monitor/output/Html.php:505 QM_Output_Html::output_filename(NULL, ‘/xxxx/public_h…hronize_Property.php’, 67) wp-content/plugins/wp-crontrol/src/bootstrap.php:2375 Crontrol\output_callback(array) wp-content/plugins/wp-crontrol/src/event-list-table.php:722 Crontrol\Event\Table::column_crontrol_actions(stdClass) wp-admin/includes/class-wp-list-table.php:1797 WP_List_Table::single_row_columns(stdClass) wp-content/plugins/wp-crontrol/src/event-list-table.php:397 Crontrol\Event\Table::single_row(stdClass) wp-admin/includes/class-wp-list-table.php:1727 WP_List_Table::display_rows() wp-admin/includes/class-wp-list-table.php:1712 WP_List_Table::display_rows_or_placeholder() wp-admin/includes/class-wp-list-table.php:1639 WP_List_Table::display() wp-content/plugins/wp-crontrol/src/bootstrap.php:2122 Crontrol\admin_manage_page(”) wp-includes/class-wp-hook.php:324 WP_Hook::apply_filters(”, array) wp-includes/class-wp-hook.php:348 WP_Hook::do_action(array) wp-includes/plugin.php:517 do_action(‘tools_page_wp-crontrol’) wp-admin/admin.php:260 require_once(‘/xxxx/wp-admin/admin.php’) wp-admin/tools.php:40

    Just for security, I replaced my server paths with xxxx

    I hope this helps. It’s happened on about 4 of my sites, but only one of them started to get all the cronjob errors. Rolling back to 3.19.0 stopped the fatal error and cron errors

    I got the same error. My Cron is disabled. DISABLE_WP_CRON = true

    Query Monitor 3.20.0

    Thread Starter Andrew Comb

    (@tecazwebdev)

    Ok it looks like the last update of WP Crontrol fixed this issue. I’ve tentatively updated all of my Query Monitor plugins to 3.20.0, and none of them are showing anomalous errors in the cron jobs or any tasks crashing in there.

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

The topic ‘Version 3.20.0 causes PHP Error’ is closed to new replies.