<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zulius &#187; wordpress</title>
	<atom:link href="http://www.zulius.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulius.com</link>
	<description>Advanced Application Development</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:09:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Fix WordPress Editor on a Free GoDaddy Hosted Site</title>
		<link>http://www.zulius.com/how-to/fix-wordpress-editor-on-a-free-godaddy-hosted-site/</link>
		<comments>http://www.zulius.com/how-to/fix-wordpress-editor-on-a-free-godaddy-hosted-site/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 01:26:56 +0000</pubDate>
		<dc:creator>Tim White</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.zulius.com/blog/?p=107</guid>
		<description><![CDATA[Did you register a domain name with GoDaddy? Did you use the "free hosting credit" to setup your website's hosting? Having problems getting the visual editor to work on your new WordPress blog? Then join the club - GoDaddy's infamous injected ads break the Javascript code that makes the TinyMCE visual editor work. Luckily, it's [...]]]></description>
			<content:encoded><![CDATA[<p>Did you register a domain name with GoDaddy? Did you use the "free hosting credit" to setup your website's hosting?  Having problems getting the visual editor to work on your new WordPress blog?  Then join the club - GoDaddy's infamous injected ads break the Javascript code that makes the TinyMCE visual editor work.  Luckily, it's fixable, and here's how.</p>
<h2>The Symptoms</h2>
<p>There are quite a few things that can cause the WordPress WYSIWYG editor to break.  Using GoDaddy's free hosting service is certainly one of them.  A couple ways that you can tell you're experiencing the "GoDaddy" problem:</p>
<p style="padding-left: 30px;">1.  On the "Write Post" page, the post toolbar looks like this:</p>
<p style="padding-left: 0px;"><img class="alignnone" src="/img/blog/tinyMCE/brokenToolbar.png" alt="broken visual editor" /></p>
<p style="padding-left: 60px;">Instead of this:</p>
<p style="padding-left: 0px;"><img class="alignnone" src="/img/blog/tinyMCE/workingToolbar.png" alt="working visual editor" /></p>
<p style="padding-left: 30px;">2.  After browsing to the "Write Post" page in Firefox, open the error console by going to Tools &gt; Error Console.  This will is displayed:</p>
<p style="padding-left: 0px;"><img class="alignnone" src="/img/blog/tinyMCE/jsError.png" alt="" /></p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">3.  Clicking the "HTML" button does nothing.</p>
<h2>The Fix</h2>
<p>Correcting this error involves a slight edit to one of the core WordPress PHP files, namely "script-loader.php".  Please do so at your own risk.  This fix has been tested on WordPress 2.6.3 with IE7 and Firefox 3.</p>
<h4 style="padding-left: 30px;">Step 1</h4>
<p style="padding-left: 60px;">Fire up your FTP client and FTP into the website you've got hosted on GoDaddy's server.  I used <a title="FireFTP" href="http://fireftp.mozdev.org/" target="_blank">FireFTP</a> in this example.  From here on, we'll assume that WordPress is installed in the "/blog" directory.</p>
<h4 style="padding-left: 30px;">Step 2</h4>
<p style="padding-left: 60px;">We've got to get the TinyMCE Javascript code from the Javascript cache on the server.  Browse to the "/blog/wp-content/uploads/js_cache" directory in your FTP client.</p>
<p style="padding-left: 0px;"><img class="alignnone" src="/img/blog/tinyMCE/gzJsFile.png" alt="gzipped TinyMCE" /></p>
<p style="padding-left: 60px;">Look for a file named like this:</p>
<p style="padding-left: 90px;"><strong>tinymce_(a bunch of numbers and letters).gz</strong></p>
<p style="padding-left: 60px;">Download it.  Extract the contents of the file (you can use <a title="WinRar" href="http://www.rarlab.com/" target="_self">WinRar</a>, <a title="winzip" href="http://www.winzip.com/" target="_self">Winzip</a>, or <a title="7-Zip" href="http://www.7-zip.org/" target="_self">7-Zip</a>).  Rename the extracted javascript file from:</p>
<p style="padding-left: 90px;"><strong>tinymce_(a bunch of numbers and letters)</strong></p>
<p style="padding-left: 60px;">to:</p>
<p style="padding-left: 90px;"><strong>tinymce_fixed.js </strong></p>
<p style="padding-left: 0px;">Upload tinymce_fixed.js to the "/blog/wp-content/uploads/js_cache" directory on the GoDaddy server.</p>
<p style="padding-left: 0px;"><img class="alignnone" src="/img/blog/tinyMCE/fixedJsFile.png" alt="TinyMCE javascript" /></p>
<p style="padding-left: 60px;"><strong><i>Note:</i></strong> If the file "tinymce_(a bunch of numbers and letters)<strong>.gz</strong>" doesn't exist on the GoDaddy server, but a file named "tinymce_(a bunch of numbers and letters)<strong>.js</strong>" does, then rename the <strong>.js</strong> file  to "tinymce_fixed.js" without the quotes.  No downloading or extracting is required.</p>
<p style="padding-left: 60px;">If the js_cache directory doesn't exist, then either WordPress doesn't have write permission to the wp-content folder, or you haven't opened the "Write Post" page yet.</p>
<h4 style="padding-left: 30px;">Step 3</h4>
<p style="padding-left: 60px;">In your FTP client, download the file "/blog/wp-includes/script-loader.php".</p>
<p style="padding-left: 0px;"><img class="alignnone" title="script-loader.php" src="/img/blog/tinyMCE/scriptLoader.png" alt="" /></p>
<p style="padding-left: 60px;">Open script-loader.php in your favorite editor, and comment out line 41.  Beneath that, insert the following new line of code:</p>
<div style="margin: 0 0 0 00px">
<pre class="brush: php; toolbar: false;">$scripts-&gt;add( 'tiny_mce', '/wp-content/uploads/js_cache/tinymce_fixed.js', array('editor_functions'), $mce_version );</pre>
</div>
<p style="padding-left: 60px;">The code should now look like this:</p>
<pre class="brush: php; first-line: 41; gutter: true; toolbar: false;">
//$scripts-&gt;add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version );
$scripts-&gt;add( 'tiny_mce', '/wp-content/uploads/js_cache/tinymce_fixed.js', array('editor_functions'), $mce_version );
</pre>
<p style="padding-left: 60px;">Upload and replace the script-loader.php file on the GoDaddy server.  You should then be good to go.  Also, make sure the "Use the visual editor when writing" option is enabled on your WordPress profile page.</p>
<h2>Notes</h2>
<p style="padding-left: 30px;">Please be aware that if you upgrade WordPress, you'll have to repeat this process to get the visual editor working again.  Same thing if you re-configure TinyMCE's settings in any way.</p>
<h2>Conclusion</h2>
<p style="padding-left: 30px;">GoDaddy's free hosting service places an ad at the top of your content using injected Javascript.  This seems to happen regardless of the response content-type headers when a PHP page is requested.</p>
<img src="http://www.zulius.com/blog/?ak_action=api_record_view&id=107&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.zulius.com/how-to/fix-wordpress-editor-on-a-free-godaddy-hosted-site/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

