I have a brand new local install of an Acquia Drupal 7 site. When I try using a shortcode, I receive this error:
Warning: function_exists() expects parameter 1 to be string, array given in _shortcode_filter_tips() (line 85 of /Users/sag/Sites/acquia-drupal/sites/all/modules/shortcode/shortcode.module).
Warning: function_exists() expects parameter 1 to be string, array given in _shortcode_filter_tips() (line 85 of /Users/sag/Sites/acquia-drupal/sites/all/modules/shortcode/shortcode.module).
Warning: function_exists() expects parameter 1 to be string, array given in _shortcode_filter_tips() (line 85 of /Users/sag/Sites/acquia-drupal/sites/all/modules/shortcode/shortcode.module).
Please note that there is only one shortcode on the page, but I receive the error three times.
What do I do?
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#4 | Screen Shot 2014-04-02 at 1.12.54 PM.png | 94.38 KB | cmcnamee |
#4 | Screen Shot 2014-04-02 at 1.12.13 PM.png | 130.25 KB | cmcnamee |
Comments
Comment #1
FareThoughts CreditAttribution: FareThoughts commentedThis is absolutely related. As soon as I disabled, the following modules, the above and below errors went away:
When I review my Text formats configuration, I'm getting this:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1571 of /Users/sag/Sites/acquia-drupal/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1571 of /Users/sag/Sites/acquia-drupal/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1571 of /Users/sag/Sites/acquia-drupal/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1571 of /Users/sag/Sites/acquia-drupal/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1571 of /Users/sag/Sites/acquia-drupal/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1571 of /Users/sag/Sites/acquia-drupal/includes/bootstrap.inc).
Comment #2
Denes.Szabo CreditAttribution: Denes.Szabo commentedThese errors come from bootstrap with not enabled shortcode modules… Actually I have no clue about what cause this problem, but I think it is not related to the shortcode module.
Comment #3
Denes.Szabo CreditAttribution: Denes.Szabo commentedFor the errors you entered in the opening: I can't reproduce them. I tried it but I had not get this error. Actually I worked a bit on the code, mainly in the variable checking. Then next release of the module likely solve your problem.
I set the issue status to postpone. Maybe you can give me more information about how can I reproduce this error (what shortcode, Drupal version, other modules you used etc.).
Comment #4
cmcnamee CreditAttribution: cmcnamee commentedI am also getting these errors. I do not have Acquia Drupal, just the standard Drupal 7 install.
The errors happened as soon as I checked "Shortcodes" checkbox on the Filtered HTML and Full HTML formats and clicked save. Now, the function_exists() error shows on every page of my site that uses shortcodes. And the htmlspecialchars error shows on the text format configurations.
These errors did not happen before enabling "Shortcodes" in the text formats configurations.
Please re-open this issue for debugging if you can. I can provide whatever information you might need, let me know.
Comment #5
cmcnamee CreditAttribution: cmcnamee commentedThis is still an issue. But, since I only have a few simple shortcodes to implement, I've developed my own custom module to do so, and have removed the Shortcodes module.
Comment #8
Denes.Szabo CreditAttribution: Denes.Szabo commentedThis caused by a wrong Shortcode definition, the filter tip must be callable function not array. Unfortunately we do not know which Shortcodes was enabled…
This error was because there is a bug in the sc_basic_highlight module - the Shortcode callback is missing.
I added double checking the callables into the Shortdoce API module, so, these errors must be disappear now.
I am closing this issue, because I have not received additional usable info as I asked in the #3.
Comment #9
bassam CreditAttribution: bassam commentedThis problem happened to me when I had two modules generate some overlapping shortcode names.