Title: Errors in debug mode
Last modified: August 20, 2016

---

# Errors in debug mode

 *  Resolved [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/errors-in-debug-mode-4/)
 * The following error occure when `define('WP_DEBUG', true);` is in wp-config.php.
   This is very annoying for developers. Please fix.:
 * Notice: has_cap was called with an argument that is deprecated since version 
   2.0! Usage of user levels by plugins and themes is deprecated. Use roles and 
   capabilities instead. in /mnt/webf/d1/15/51893315/htdocs/opajaap/beta/wp-includes/
   functions.php on line 2908 Warning: Cannot modify header information – headers
   already sent by (output started at /mnt/webf/d1/15/51893315/htdocs/opajaap/beta/
   wp-includes/functions.php:2908) in /mnt/webf/d1/15/51893315/htdocs/opajaap/beta/
   wp-includes/pluggable.php on line 876
 * The error is in map_functions.php line 61:
    It reads:
 *     ```
       add_options_page('Google Maps Options', 'Google Maps', 10, PLUGIN_NAME.'/php/options.php');
       ```
   
 * and should be:
 *     ```
       add_options_page('Google Maps Options', 'Google Maps', 'administrator', PLUGIN_NAME.'/php/options.php');
       ```
   
 * Thanx
 * [http://wordpress.org/extend/plugins/google-maps-gpx-viewer/](http://wordpress.org/extend/plugins/google-maps-gpx-viewer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bernd Altmeier](https://wordpress.org/support/users/bernd-altmeier/)
 * (@bernd-altmeier)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/errors-in-debug-mode-4/#post-3629045)
 * thanks for that hint, it will be fixed in 3.0

Viewing 1 replies (of 1 total)

The topic ‘Errors in debug mode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-maps-gpx-viewer_c3d0cb.svg)
 * [Google Maps GPX Viewer](https://wordpress.org/plugins/google-maps-gpx-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-gpx-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-gpx-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-gpx-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-gpx-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-gpx-viewer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bernd Altmeier](https://wordpress.org/support/users/bernd-altmeier/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/errors-in-debug-mode-4/#post-3629045)
 * Status: resolved