Ticket #3572 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

IIS RTE not loading in 2.1

Reported by: sunburntkamel Assigned to: andy
Priority: high Milestone: 2.2
Component: Administration Version: 2.1
Severity: normal Keywords: tinyMCE RTE rich text editor IIS dev-feedback
Cc:

Description (Last modified by foolswisdom)

tinyMCE is not loading in both my installations of 2.1.

ENV: IIS, with MySQL 4.1.21-community-nt
PHP Version 4.3.1 CGI/FastCGI

2.1alpha3: http://archgfx.net/sandbox

2.1beta2: http://archgfx.net/wordpress

Screenshot: http://picasaweb.google.com/sunburntkamel/Screenshots/photo#5019191130067666034

PHPinfo: http://archgfx.net/phptest/phpinfo.php

Attachments

tiny_mce_gzip.phps (10.1 kB) - added by sunburntkamel on 01/25/07 22:23:22.
modified tiny_mce_gzip
tiny_mce_gzip.php.2.1.2.patch (0.8 kB) - added by sunburntkamel on 03/05/07 18:29:08.
updated patch for 2.1.1

Change History

01/12/07 19:17:28 changed by sunburntkamel

  • priority changed from low to normal.

FWIW, my client is windows XP SP2, and it occurs in both FF 2 and IE 7

01/12/07 20:01:58 changed by foolswisdom

  • description changed.
  • summary changed from RTE not loading in 2.1 to IIS RTE not loading in 2.1.

01/13/07 01:31:01 changed by sunburntkamel

firebug shows the following errors: invalid flag after regular expression (http://archgfx.net/wordpress/wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20061113 line 121) tinyMCE is not defined (http://archgfx.net/wordpress/wp-includes/js/tinymce/tiny_mce_config.php?ver=20061113 line 35) tinyMCE is not defined (http://archgfx.net/wordpress/wp-admin/post-new.php line 201)

01/16/07 02:22:07 changed by ryan

Are you running a theme that includes a copy of prototype?

01/16/07 02:23:10 changed by ryan

  • priority changed from normal to high.

01/16/07 02:59:20 changed by sunburntkamel

newp, neither installation.

01/16/07 21:42:55 changed by sunburntkamel

looking at: http://archgfx.net/wordpress/wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20061113

i see the last line refers to ob_gzhandler, which doesn't work/exist on my server. is there some setting that should be flipped to turn it off?

(follow-up: ↓ 9 ) 01/16/07 23:49:03 changed by ryan

You have the zlib extension installed, so ob_gzhandler() should exist. The error suggests that ob_gzhandler() is being run twice. If you have plugins activated, check to make sure none of them invoke ob_gzhandler(). Failing that, if you can edit your php.ini, try setting output_buffering to Off. It is currently 4096. I don't think that should matter since zlib.output_compression is off, but it won't hurt to check.

(in reply to: ↑ 8 ) 01/17/07 04:37:25 changed by sunburntkamel

Replying to ryan:

You have the zlib extension installed, so ob_gzhandler() should exist. The error suggests that ob_gzhandler() is being run twice. If you have plugins activated, check to make sure none of them invoke ob_gzhandler(). Failing that, if you can edit your php.ini, try setting output_buffering to Off. It is currently 4096. I don't think that should matter since zlib.output_compression is off, but it won't hurt to check.

alright, last time i had trouble with ob_gzhandler() loading twice, i deleted it from functions.php, and that fixed it. i can't edit php.ini myself, but i've asked my host, and i'll let you know.

01/17/07 04:38:10 changed by sunburntkamel

and no, no plugins. except akismet.

01/17/07 13:15:49 changed by sunburntkamel

i added:

ini_set('output_buffering', 'off');

to /sandbox/wp-config.php, still nothing.

01/24/07 03:44:44 changed by foolswisdom

  • milestone changed from 2.1 to 2.1.1.

01/24/07 15:13:49 changed by sunburntkamel

fwiw, both installs are running 2.1.0, and they still don't work.

if having admin access would be helpful, drop me an email: http://www.archgfx.net/aspnet_client/obfuscated1.html

01/25/07 05:32:10 changed by ryan

Does deleting ob_gzhandler() fix it?

01/25/07 12:57:44 changed by sunburntkamel

i deleted it out of

/wp-includes/functions.php

like this, but no, it didn't help. is there someplace else i should delete it?

01/25/07 19:28:15 changed by andy

check wp-includes/js/tiny_mce_gzip.php

(follow-up: ↓ 18 ) 01/25/07 19:28:46 changed by andy

I missed a directory there but I think you can find it :)

01/25/07 22:23:22 changed by sunburntkamel

  • attachment tiny_mce_gzip.phps added.

modified tiny_mce_gzip

(in reply to: ↑ 17 ) 01/25/07 22:24:54 changed by sunburntkamel

Replying to andy:

I missed a directory there but I think you can find it :)

alright, i deleted everything from line 132 to 137, now it works.

02/06/07 06:00:31 changed by rchennau

I was having the exact same problem. I commented out the entire // Check for gzip header or northon internet securities section from 131 - 145.

That led to out of memory error to which I added:

ini_set("memory_limit","12M");

after the first require. It now works. I'm not sure I fixed anything but if memory serves me correctly from my old C programming days leaking memory is never good but if you are going to leak assign a big buffer to your array... ;) That way your problem will happen much later and may never crop up if the process gets terminated/reset before you run out of memory.

02/21/07 15:24:44 changed by Nazgul

  • keywords changed from tinyMCE RTE rich text editor IIS to tinyMCE RTE rich text editor IIS dev-feedback.
  • milestone changed from 2.1.1 to 2.1.2.

Reporters problem seems fixed by the "hack".

Is there a way to test for this issue and include a permanent fix in core or is this so rare that we'll just learn to live with it?

03/05/07 18:24:43 changed by sunburntkamel

the hack is no longer working.

03/05/07 18:29:08 changed by sunburntkamel

  • attachment tiny_mce_gzip.php.2.1.2.patch added.

updated patch for 2.1.1

03/05/07 21:36:21 changed by ryan

  • owner changed from anonymous to andy.

03/28/07 00:26:02 changed by foolswisdom

  • milestone changed from 2.1.3 to 2.2.

03/28/07 23:21:58 changed by ryan

trunk has a new tinyMCE compressor that might help.

03/29/07 03:37:59 changed by sunburntkamel

yep, latest SVN works on a test install.

03/29/07 03:43:39 changed by foolswisdom

  • status changed from new to closed.
  • resolution set to fixed.

Excellent, we will call this fixed then.