Title: Plugin causing Php Error &#8211; Undefined index: file
Last modified: August 30, 2016

---

# Plugin causing Php Error – Undefined index: file

 *  Resolved [Bhargav](https://wordpress.org/support/users/bhargavy/)
 * (@bhargavy)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-php-error-undefined-index-file/)
 * I’m using this on windows localhost with ammps.
 * > Notice
   >  Undefined index: file 3 wp-content/plugins/query-monitor/output/html/
   > languages.php:56 do_action(‘shutdown’) shutdown_action_hook() Plugin: query-
   > monitor Undefined index: line 3 wp-content/plugins/query-monitor/output/html/
   > languages.php:56 do_action(‘shutdown’) shutdown_action_hook() Plugin: query-
   > monitor
 * [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)

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

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-php-error-undefined-index-file/#post-6756025)
 * Thanks for the report. I’m already aware of this issue and it’ll be fixed in 
   the next release.
 *  [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-php-error-undefined-index-file/#post-6756128)
 * Looks like the quick fix is just to check if the value is empty before output.
 *     ```
       echo self::output_filename(
       empty($mofile['caller']['display']) ? '' : $mofile['caller']['display'],
       empty($mofile['caller']['file']) ? '' : $mofile['caller']['file'],
       empty($mofile['caller']['line']) ? '' : $mofile['caller']['line'] ); // WPCS: XSS ok.
       ```
   

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

The topic ‘Plugin causing Php Error – Undefined index: file’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-php-error-undefined-index-file/#post-6756128)
 * Status: resolved