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 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.