Installing Wordpress on Awardspace - TinyMCE GZ File

[FONT=“Georgia”]Hello.

I’m wondering if anyone here has any experience installing Wordpress onto Awardspace free hosting.

I’ve been running into trouble (Javascript errors) with TinyMCE until I discovered that Awardspace’s server has been blocking one of TinyMCE’s files from upload because of its .gz file extension.[/FONT]

website/wp-includes/js/tinymce/wp-tinymce.js.gz

[FONT=“Georgia”]I know it’s the extension because I tried renaming the file as “wp-tinymce.js.gz.html”, after which it uploaded just fine.

Unfortunately I’ve been blocked from renaming the file back to “wp-tinymce.js.gz” via FTP.

Is there anyone out there who’s successfully installed and gotten working Wordpress on Awardspace?

If so, please point me in the right direction. How did you do it? If not, I think it’s time for me to shop around for another free host.

Many thanks!

[/FONT]

Um, nope I haven’t

but I see that in two days they have an insane promo on and you can get the basic and a domain for a year for $10, and their Zacky thingamadoodle includes a WP install script.

[FONT=“Georgia”]I saw it. Unfortunately it’s an old version of Wordpress and also I have to upgrade to paid hosting to use their Zacky thingamadoodle.

It’s a freebie site for a charity so any kind of paid hosting is out for them. At least for now.

[/FONT]

[FONT=“Georgia”]I’m wondering now if there’s a way to rename that .gz file and point Wordpress to the new filename.

The rest of Wordpress installed and is working fine. It’s just that TinyMCE bug.

[/FONT]

[FONT=“Georgia”]Yatta ne!

I found it.

Yes, there is a way to hack around the TinyMCE .gz file. I googled and came upon the solution here, which, oddly enough, seems to be someone with the same hosting problem I had.

It means extracting the .gz file on my local computer, uploading it to the TinyMCE directory as;[/FONT]

website/wp-includes/js/tinymce/wp-tinymce.js

Then updating the last part of the PHP in the following file to the code quoted below;

website/wp-includes/js/tinymce/wp-tinymce.php

//if ( isset($_GET['c']) && 1 == $_GET['c'] && isset($_SERVER['HTTP_ACCEPT_ENCODING'])
//	&& false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) {

if ( isset($_GET['c']) && 1 == $_GET['c'] && isset($_SERVER['HTTP_ACCEPT_ENCODING'])
	&& ( $file = get_file($basepath . '/wp-tinymce.js') ) ) {

	//header('Content-Encoding: gzip');
	echo $file;
} else {
	echo get_file($basepath . '/tiny_mce.js');
}
exit;

[FONT=“Georgia”]I had to clear my brower’s cache before the change was recognised, but it worked advertised :tup:

[/FONT]