Title: [Plugin: WP SyntaxHighlighter] undefined variables error
Last modified: August 20, 2016

---

# [Plugin: WP SyntaxHighlighter] undefined variables error

 *  Resolved [computerslayer1](https://wordpress.org/support/users/computerslayer1/)
 * (@computerslayer1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-undefined-variables-error/)
 * In IE6, two undefined variable errors make the entire page go blank. Normally
   I wouldn’t care about minor issues in IE6, but the page is completely inaccessible
   in IE6 because of this error.
 *     ```
       line 63
       char:2
       error: 'SyntaxHighlighter' is undefined
       code: 0
       ```
   
 *     ```
       line 768
       char:2
       error: 'SyntaxHighlighter' is undefined
       code: 0
       ```
   
 * Line 63 just indicates some HTML which doesn’t appear to be at all related to
   the syntax highlighter (an H3 tag).
 * At line 786 is this line:
 * `SyntaxHighlighter.autoloader(`
 * Below is the entire code block for the syntax highlighter as it appears in IE6:
 *     ```
       <!-- WP SyntaxHighlighter Ver.1.5.7 Begin -->
       <script type="text/javascript" src="http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?ver=3.0"></script>
       <script type="text/javascript" src="http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shAutoloader.js?ver=3.0"></script>
       <script type="text/javascript" src="http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushXml.js?ver=3.0"></script>
       <script type="text/javascript">//<![CDATA[
       	SyntaxHighlighter.autoloader(
       	"applescript	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushAppleScript.js?ver=3.0"
       	,"as3 actionscript3	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushAS3.js?ver=3.0"
       	,"c# c-sharp csharp	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCSharp.js?ver=3.0"
       	,"css	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCss.js?ver=3.0"
       	,"js jscript javascript	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJScript.js?ver=3.0"
       	,"php	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPhp.js?ver=3.0"
       	,"sql	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushSql.js?ver=3.0"
       	,"xml xhtml xslt html	http://localhost/wpsite/content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shBrushXml.js?ver=3.0"
       	);
       	SyntaxHighlighter.defaults['auto-links'] = true;
       	SyntaxHighlighter.defaults['title'] = '';
       	SyntaxHighlighter.defaults['class-name'] = 'notranslate';
       	SyntaxHighlighter.defaults['collapse'] = false;
       	SyntaxHighlighter.defaults['first-line'] = 1;
       	SyntaxHighlighter.defaults['gutter'] = true;
       	SyntaxHighlighter.defaults['pad-line-numbers'] = false;
       	SyntaxHighlighter.defaults['smart-tabs'] = true;
       	SyntaxHighlighter.defaults['tab-size'] = 4;
       	SyntaxHighlighter.defaults['toolbar'] = true;
        SyntaxHighlighter.config.strings.expandSource = '+ expand source';
       	SyntaxHighlighter.config.strings.help = '?';
       	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
       	SyntaxHighlighter.config.strings.noBrush = "Can't find brush for: ";
       	SyntaxHighlighter.config.strings.brushNotHtmlScript = "Brush wasn't configured for html-script option: ";
       	SyntaxHighlighter.all();
   
       //]]></script>
       <!-- WP SyntaxHighlighter Ver.1.5.7 End -->
       ```
   
 * [http://wordpress.org/extend/plugins/wp-syntaxhighlighter/](http://wordpress.org/extend/plugins/wp-syntaxhighlighter/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [computerslayer1](https://wordpress.org/support/users/computerslayer1/)
 * (@computerslayer1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-undefined-variables-error/#post-2337995)
 * After digging into this further, it seems that in the template’s head, a script
   tag with a src attribute wasn’t properly closed. IE6 was the only browser that
   caused a fit with this.
 * Problem solved.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP SyntaxHighlighter] undefined variables error’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-syntaxhighlighter_66666c.svg)
 * [WP SyntaxHighlighter](https://wordpress.org/plugins/wp-syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-syntaxhighlighter/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [computerslayer1](https://wordpress.org/support/users/computerslayer1/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-undefined-variables-error/#post-2337995)
 * Status: resolved