• Resolved ChuckMaurice

    (@chuckmaurice)


    Hi,
    I’ve got this error messages on the top of the window:
    Warning: Wrong parameter count for debug_backtrace() in /home/eric/public_html/tmb/www/wp-content/plugins/query-monitor/classes/Backtrace.php on line 65

    Warning: array_values() [function.array-values]: The argument should be an array in /home/eric/public_html/tmb/www/wp-content/plugins/query-monitor/classes/Backtrace.php on line 182

    Warning: array_values() [function.array-values]: The argument should be an array in /home/eric/public_html/tmb/www/wp-content/plugins/query-monitor/classes/Backtrace.php on line 182

    I don’t know what to do. i’ve deleted/reinstalled query monitor, but it hasn’t changed anything.

    Thank you for your help,

    https://ww.wp.xz.cn/plugins/query-monitor/

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

    (@johnbillion)

    WordPress Core Developer

    Which version of PHP are you running?

    Thread Starter ChuckMaurice

    (@chuckmaurice)

    hi john,

    i’m running: PHP Version 5.2.4-2ubuntu5.1

    regards,

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Wow. You need to update your installation of PHP. That is literally the oldest version that WordPress supports.

    The $options parameter in debug_backtrace() was added in PHP 5.2.5 (one minor release newer than yours) and adding more overhead to the backtracing in QM is something I want to avoid.

    It’s unlikely that I’ll address this. Sorry.

    Thread Starter ChuckMaurice

    (@chuckmaurice)

    ok, i see!
    it’s going to be a little bit tricky for me…
    thanks for your help,

    regards,

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    If you want to get Query Monitor working on your site for now, you can just remove the false parameter from debug_backtrace() on line 65 of classes/Backtrace.php (see here) and it should fix the problem.

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

The topic ‘Wrong parameter count for debug_backtrace()’ is closed to new replies.