Forums

[resolved] (WP 2.7.1) Warning: htmlspecialchars_decode() Error when posting source code (6 posts)

  1. stein
    Member
    Posted 3 years ago #

    Hello,

    Since I updated to 2.7.1 I have no longer been able to post any source code without triggering an error; except by disabling the syntax highlighting plugin I use (Syntaxhighlighter). I tried other similar plugins to see if it was a plugin error but not even the 2-day-ago updated Syntaxhighlighter Plus worked.

    The error appears when attempting to publish/save/preview any post containing [code] or [sourcecode] tags and this appears:

    Warning: htmlspecialchars_decode() expects parameter 1 to be string, NULL given in /home/iniciat/public_html/main/wp-includes/compat.php on line 105

    Warning: Cannot modify header information - headers already sent by (output started at /home/iniciat/public_html/main/wp-includes/compat.php:105) in /home/iniciat/public_html/main/wp-includes/pluggable.php on line 850

    Any help will be very appreciated,

    thanks

  2. iridiax
    Member
    Posted 3 years ago #

  3. stein
    Member
    Posted 3 years ago #

    Thanks for pointing out a possible solution but the compat.php file is untouched from the original. I followed the steps in the link you posted to make sure there are no spaces or other code outside the PHP, but the error persists.

  4. k.krohn
    Member
    Posted 3 years ago #

    Can confirm, exact the same behavior here.
    Wordpress 2.7.1, Syntaxhighlighter 1.1.2

    as deactivating the plugin helps, it doesn't seem to be a problem of WP but of Syntaxhighlighter :(

  5. MichaelH
    Volunteer
    Posted 3 years ago #

  6. stein
    Member
    Posted 3 years ago #

    Excellent, thanks MichaelH!
    This fixed it.

Topic Closed

This topic has been closed to new replies.

About this Topic