Title: Error detected in debug mode
Last modified: December 7, 2016

---

# Error detected in debug mode

 *  [Trebly](https://wordpress.org/support/users/trebly/)
 * (@trebly)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/error-detected-in-debug-mode/)
 * Hi,
 * Needed enhancement to run with 4.6 (not tested detailed features) :
 * I got this error when running debug (enhanced using debug_print_backtrace() to
   localize mode on an empty dictionnary (just installed and activated) :
 * The debug log says :
 * > [06-Dec-2016 14:29:40 UTC] PHP Notice: add_shortcode was called **incorrectly**.
   > Invalid shortcode name: explanatory dictionary. Do not use spaces or reserved
   > characters: & / < > [ ] = Please see [Debugging in WordPress](https://codex.wordpress.org/Debugging_in_WordPress)
   > for more information. (This message was added in version 4.4.0.) in …/www/…/
   > wp-includes/functions.php on line 3996
 * With my enhanced version of functions.php with new wp_config.php parameter, I
   display the debug_print_backtrace(), which tells :
 * > #0 _doing_it_wrong(add_shortcode, Invalid shortcode name: explanatory dictionary.
   > Do not use spaces or reserved characters: & / < > [ ] =, 4.4.0)
   >  called at [../
   > www/…/wp-includes/shortcodes.php:101] #1 add_shortcode(explanatory dictionary,
   > Array ([0] => Explanatory_Dictionary Object ([] => ,[] => ,[] => Array (),[]
   > => ,[] => Array ()),[1] => explanatory_dictionary_shortcode_deprecated)) called
   > at [../www/…/wp-content/plugins/explanatory-dictionary/public/classes/default.
   > php:96] #2 Explanatory_Dictionary->__construct() called at [../www/…/wp-content/
   > plugins/explanatory-dictionary/public/classes/default.php:110] #3 Explanatory_Dictionary::
   > get_instance() #4 call_user_func_array(Array ([0] => Explanatory_Dictionary,[
   > 1] => get_instance), Array ([0] => )) called at [../www/…/wp-includes/plugin.
   > php:524] #5 do_action(plugins_loaded) called at [../www/…/wp-settings.php:295]#
   > 6 require_once(../www/wp3-01/wp-settings.php) called at [../www/…/wp-config.
   > php:105] #7 require_once(../www/wp3-01/wp-config.php) called at [../www/…/wp-
   > load.php:39] #8 require_once(../www/wp3-01/wp-load.php) called at [../www/…/
   > wp-blog-header.php:13] #9 require(../www/wp3-01/wp-blog-header.php) called 
   > at [../www/…/index.php:17] #0 _doing_it_wrong(add_shortcode, Invalid shortcode
   > name: no explanation. Do not use spaces or reserved characters: & / < > [ ]
   > =, 4.4.0) called at [../www/…/wp-includes/shortcodes.php:101] #1 add_shortcode(
   > no explanation, Array ([0] => Explanatory_Dictionary Object ([] => ,[] => ,[]
   > => Array (),[] => ,[] => Array ()),[1] => no_explanation_shortcode_deprecated))
   > called at [../www/…/wp-content/plugins/explanatory-dictionary/public/classes/
   > default.php:97] #2 Explanatory_Dictionary->__construct() called at [../www/…/
   > wp-content/plugins/explanatory-dictionary/public/classes/default.php:110] #
   > 3 Explanatory_Dictionary::get_instance() #4 call_user_func_array(Array ([0]
   > => Explanatory_Dictionary,[1] => get_instance), Array ([0] => )) called at [../
   > www/…/wp-includes/plugin.php:524] #5 do_action(plugins_loaded) called at [../
   > www/…/wp-settings.php:295] #6 require_once(../www/wp3-01/wp-settings.php) called
   > at [../www/…/wp-config.php:105] #7 require_once(../www/wp3-01/wp-config.php)
   > called at [../www/…/wp-load.php:39] #8 require_once(../www/wp3-01/wp-load.php)
   > called at [../www/…/wp-blog-header.php:13] #9 require(../www/wp3-01/wp-blog-
   > header.php) called at [../www/…/index.php:17]
 * Hope for an updated version ?
    Best regards. Trebly

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

 * ![](https://s.w.org/plugins/geopattern-icon/explanatory-dictionary_d9362e.svg)
 * [Explanatory Dictionary](https://wordpress.org/plugins/explanatory-dictionary/)
 * [Support Threads](https://wordpress.org/support/plugin/explanatory-dictionary/)
 * [Active Topics](https://wordpress.org/support/plugin/explanatory-dictionary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/explanatory-dictionary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/explanatory-dictionary/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)

 * 0 replies
 * 1 participant
 * Last reply from: [Trebly](https://wordpress.org/support/users/trebly/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/error-detected-in-debug-mode/)
 * Status: not resolved