• Resolved mireillesan

    (@mireillesan)


    I’m receiving these errors:

    Warning: explode() expects parameter 2 to be string, array given in C:\xampp\…\wp-content\plugins\query-monitor\output\html\db_queries.php on line 323
    Warning: array_reverse() expects parameter 1 to be array, null given in C:\xampp\…\wp-content\plugins\query-monitor\output\html\db_queries.php on line 324
    Warning: array_shift() expects parameter 1 to be array, null given in C:\xampp\…\wp-content\plugins\query-monitor\output\html\db_queries.php on line 325
    Warning: array_map(): Argument #2 should be an array in C:\xampp\wp-content\plugins\query-monitor\output\html\db_queries.php on line 326

    https://www.ads-software.com/plugins/query-monitor/

Viewing 6 replies - 1 through 6 (of 6 total)
  • hey @mireillesan, can you please report what versions of WP and QM you are using?

    Thread Starter mireillesan

    (@mireillesan)

    QM version 2.11.4 and WP 4.5.3

    https://www.mediafire.com/view/voyaudnfy8z3fp8/img-qm.png

    I’m not sure, but it’s possible that it might be a “false” error. I only have it on one specific page.

    One thing I did notice, is the query seems to have been manipulated… “WHERE AND comment_parent” is incorrect syntax… WP starts all WHERE statements with “1=1”, and that is missing from this query (which causes the database error, which I believe causes the PHP error).

    Do you have a plugin activated that manipulates database queries?

    Thread Starter mireillesan

    (@mireillesan)

    Not sure, but it’s possible. Eitherway, I’ll look into it. ??
    Thanks.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the message, @mireillesan.

    I can see the root cause of this problem. It’s caused when QM falls back to using the built-in EZSQL error logging instead of its own error logging. I’ll get it fixed in the next version of QM.

    Thread Starter mireillesan

    (@mireillesan)

    Glad to hear you were able to find it. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warnings’ is closed to new replies.