[wp-testers] TinyMCE broken with SVN

Kimmo Suominen kimmo+key+wordpress.c4f53f at suominen.com
Wed Aug 2 11:47:47 GMT 2006


I noted that TinyMCE was not loading.  This was due to an unnecessary
call to realpath() when reading in the TinyMCE code.

Calling realpath() returns false on my system, because the canonical
path cannot be resolved (when running as the web server) due to
directory permissions.  Removing the call to realpath() makes TinyMCE
work again.  There is no need to call realpath() in this case.

Index: wp-includes/js/tinymce/tiny_mce_gzip.php
===================================================================
--- wp-includes/js/tinymce/tiny_mce_gzip.php	(revision 4069)
+++ wp-includes/js/tinymce/tiny_mce_gzip.php	(working copy)
@@ -64,7 +64,7 @@
 	header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT");
 
 	// Write main script
-	$tinymce = file_get_contents(realpath("tiny_mce.js"));
+	$tinymce = file_get_contents('tiny_mce.js');
 	echo wp_compact_tinymce_js($tinymce);
 	echo "\n\n";
 

Best regards,
+ Kimmo
-- 
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>


On Wed, Aug 02, 2006 at 01:23:11PM +0200, Kent Roger wrote:
> I've been puzzled for days now trying to figure out why TinyMCE was
> broken with the latest SVN release, when I tried the 2.0.4 release and
> TinyMCE worked like a charm. Is it just me and my setup
> (gentoo,php5-cli,suphp,apache2 running on port 8081) or is it something
> with WP?


More information about the wp-testers mailing list