WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#3572 closed defect (bug) (fixed)

IIS RTE not loading in 2.1

Reported by: sunburntkamel Owned by: andy
Milestone: 2.2 Priority: high
Severity: normal Version: 2.1
Component: Administration Keywords: tinyMCE RTE rich text editor IIS dev-feedback
Focuses: 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 (2)

tiny_mce_gzip.phps (10.1 KB) - added by sunburntkamel 9 years ago.
modified tiny_mce_gzip
tiny_mce_gzip.php.2.1.2.patch (777 bytes) - added by sunburntkamel 8 years ago.
updated patch for 2.1.1

Download all attachments as: .zip

Change History (28)

comment:1 @sunburntkamel9 years ago

  • Priority changed from low to normal

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

comment:2 @foolswisdom9 years ago

  • Description modified (diff)
  • Summary changed from RTE not loading in 2.1 to IIS RTE not loading in 2.1

comment:4 @ryan9 years ago

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

comment:5 @ryan9 years ago

  • Priority changed from normal to high

comment:6 @sunburntkamel9 years ago

newp, neither installation.

comment:7 @sunburntkamel9 years ago

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?

comment:8 follow-up: @ryan9 years ago

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.

comment:9 in reply to: ↑ 8 @sunburntkamel9 years ago

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.

comment:10 @sunburntkamel9 years ago

and no, no plugins. except akismet.

comment:11 @sunburntkamel9 years ago

i added:

ini_set('output_buffering', 'off');

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

comment:12 @foolswisdom9 years ago

  • Milestone changed from 2.1 to 2.1.1

comment:13 @sunburntkamel9 years ago

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

comment:14 @ryan9 years ago

Does deleting ob_gzhandler() fix it?

comment:15 @sunburntkamel9 years ago

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?

comment:16 @andy9 years ago

check wp-includes/js/tiny_mce_gzip.php

comment:17 follow-up: @andy9 years ago

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

@sunburntkamel9 years ago

modified tiny_mce_gzip

comment:18 in reply to: ↑ 17 @sunburntkamel9 years ago

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.

comment:19 @rchennau9 years ago

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.

comment:20 @Nazgul9 years ago

  • Keywords dev-feedback added
  • 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?

comment:21 @sunburntkamel8 years ago

the hack is no longer working.

@sunburntkamel8 years ago

updated patch for 2.1.1

comment:22 @ryan8 years ago

  • Owner changed from anonymous to andy

comment:23 @foolswisdom8 years ago

  • Milestone changed from 2.1.3 to 2.2

comment:24 @ryan8 years ago

trunk has a new tinyMCE compressor that might help.

comment:25 @sunburntkamel8 years ago

yep, latest SVN works on a test install.

comment:26 @foolswisdom8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Excellent, we will call this fixed then.

Note: See TracTickets for help on using tickets.