Title: Wrong parameter count for debug_backtrace()
Last modified: August 22, 2016

---

# Wrong parameter count for debug_backtrace()

 *  Resolved [ChuckMaurice](https://wordpress.org/support/users/chuckmaurice/)
 * (@chuckmaurice)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/)
 * 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://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)

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

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/#post-5947947)
 * Which version of PHP are you running?
 *  Thread Starter [ChuckMaurice](https://wordpress.org/support/users/chuckmaurice/)
 * (@chuckmaurice)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/#post-5947994)
 * hi john,
 * i’m running: PHP Version 5.2.4-2ubuntu5.1
 * regards,
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/#post-5948007)
 * 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](https://wordpress.org/support/users/chuckmaurice/)
 * (@chuckmaurice)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/#post-5948012)
 * ok, i see!
    it’s going to be a little bit tricky for me… thanks for your help,
 * regards,
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/#post-5948013)
 * 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](https://github.com/johnbillion/query-monitor/blob/2.7.1/classes/Backtrace.php#L65))
   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.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/wrong-parameter-count-for-debug_backtrace/#post-5948013)
 * Status: resolved