Skip to content

Uncaught query monitor error on WP Crontrol #1046

@kevinlisota

Description

@kevinlisota

We use both Query Monitor and WP Crontrol on our site. There is a specific cron event in Tools > Cron Events that triggers a fatal error in Query Monitor, preventing the rendering of the remaining cron events.

Uncaught Error: strpos(): Argument #1 ($haystack) must be of type string, null given
in /home/1114090.cloudwaysapps.com/fncvwrznat/public_html/wp-content/plugins/query-monitor/output/Html.php on line 505

Call stack:

strpos()
QM_Output_Html::output_filename()
Crontrol\output_callback()
Crontrol\Event\Table::column_crontrol_actions()
WP_List_Table::single_row_columns()
Crontrol\Event\Table::single_row()
WP_List_Table::display_rows()
WP_List_Table::display_rows_or_placeholder()
WP_List_Table::display()
Crontrol\admin_manage_page()
WP_Hook::apply_filters()
WP_Hook::do_action()
do_action()
require_once('/home/1114090.cloudw...l/wp-admin/admin.php')

Right now, the error is specific to this cron event is from Gravity Forms SMTP plugin: gravitysmtp_cron_gravitysmtp_email_summary

I haven't taken the time to debug this. It could be an issue with the Gravity Forms SMTP cron job or something in WP Crontrol, but I think Query Monitor should probably fail gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions