Problem with SyntaxHighlighter Evolved in WordPress MU 2.7.1

Posted by peter on Tuesday, May 5, 2009

I installed SyntaxHighlighter Evolved a couple of days ago but I wasn’t sure how to use, I couldn’t get it to work. After a while I saw the following error message “Warning: htmlspecialchars_decode() expects parameter 1 to be string”. After a quick Googling for that phrase I found this post that led me to the the following bug report with the solution.

The line in error is line 104 in wp-includes/compat.php:
<br /> if ( !is_scalar( $string ) ) {<br />
should be
<br /> if ( !is_scalar( $str ) ) {<br />

I did the change and now it works perfect. 🙂

comments powered by Disqus