<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Unexpected token ILLEGAL</title>
		<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal</link>
		<description>Gravity Support Forums Topic: Unexpected token ILLEGAL</description>
		<language>en-US</language>
		<pubDate>Fri, 03 Apr 2026 20:39:27 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/unexpected-token-illegal" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-117122</link>
			<pubDate>Tue, 08 Jan 2013 21:41:10 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">117122@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for that update.  What function was that code providing for you?  I see the div is clearing something, but where did you need that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>humaan on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-117119</link>
			<pubDate>Tue, 08 Jan 2013 21:36:34 +0000</pubDate>
			<dc:creator>humaan</dc:creator>
			<guid isPermaLink="false">117119@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We found out what was causing the issue.&#60;br /&#62;
We had the following function in a plugin file:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_field_content&#38;#39;, &#38;#39;my_custom_field&#38;#39;, 10, 5 );
function my_custom_field( $content, $field, $value, $lead_id, $form_id ) {
	$content .= &#38;#39;&#38;lt;div class=&#38;quot;clear&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;
	return $content;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Commenting out this function fixed the issue. Not sure why but it works now. (Also, when we tested I'm guessing something was cached which is why we didn't notice a change which you've pointed out in your testing instructions).&#60;br /&#62;
Cheers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>humaan on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-117086</link>
			<pubDate>Tue, 08 Jan 2013 21:14:12 +0000</pubDate>
			<dc:creator>humaan</dc:creator>
			<guid isPermaLink="false">117086@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Forgot to mention that we tried the Twenty Ten theme and then deactivating all the plugins but the issue still remains (from &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict)&#60;/a&#62;.&#60;br /&#62;
Cheers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>humaan on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-117075</link>
			<pubDate>Tue, 08 Jan 2013 21:05:59 +0000</pubDate>
			<dc:creator>humaan</dc:creator>
			<guid isPermaLink="false">117075@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Unfortunately we have a similar issue. The only difference we are aware of between when it was working and now is that Wordpress was upgraded to version 3.5 using the auto update feature.&#60;/p&#62;
&#60;p&#62;The issue (for us anyway) is that appears to only affect the form builder. If I click a button to add a field the following error message is shown in the Chrome developer tool console and nothing happens on the page:&#60;/p&#62;
&#60;p&#62;Uncaught SyntaxError: Unexpected identifier (tw-sack.min.js:1)&#60;br /&#62;
    runResponse (tw-sack.min.js:1)&#60;br /&#62;
    xmlhttp.onreadystatechange (tw-sack.min.js:1)&#60;/p&#62;
&#60;p&#62;The actual form on the web page works fine.&#60;br /&#62;
Let me know if you need more info?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-117021</link>
			<pubDate>Tue, 08 Jan 2013 20:19:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">117021@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ryan, can you share the link to the page where your form is embedded so we can see this for ourselves?  Or does this only occur in the form builder?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryancassin on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-116913</link>
			<pubDate>Tue, 08 Jan 2013 15:11:25 +0000</pubDate>
			<dc:creator>ryancassin</dc:creator>
			<guid isPermaLink="false">116913@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Used Firebug with WordPress script debugging enabled so it wouldn't use the minified version.&#60;/p&#62;
&#60;p&#62;Error happening here:&#60;/p&#62;
&#60;p&#62;illegal character&#60;br /&#62;
this.xmlhttp = new ActiveXObject(&#34;Microsoft.XMLHTTP&#34;);&#60;br /&#62;
Line 43 of tw-sack
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryancassin on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-116903</link>
			<pubDate>Tue, 08 Jan 2013 14:48:32 +0000</pubDate>
			<dc:creator>ryancassin</dc:creator>
			<guid isPermaLink="false">116903@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;FYI I tested the same in FireFox and got an &#34;illegal character&#34; error in the console.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryancassin on "Unexpected token ILLEGAL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unexpected-token-illegal#post-116900</link>
			<pubDate>Tue, 08 Jan 2013 14:44:06 +0000</pubDate>
			<dc:creator>ryancassin</dc:creator>
			<guid isPermaLink="false">116900@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am unable to add any fields to new forms, or save forms. When I attempt to add a new field to the form, nothing happens.&#60;/p&#62;
&#60;p&#62;Opening the Chrome inspector, I see on the console &#34;Uncaught SyntaxError: Unexpected token ILLEGAL&#34; in tw-sack.min.js&#60;/p&#62;
&#60;p&#62;Can you shed some light on what the possible causes for this error are? I'm using the most recent version of Gravity Forms (1.6.11) on WordPress 3.5. I've disabled all other plugins as a troubleshooting attempt.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
