Ticket #3572 (closed defect (bug): fixed)

Opened 5 years ago

Last modified 5 years ago

IIS RTE not loading in 2.1

Reported by: sunburntkamel Owned by: 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) (diff)

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 Download (10.1 KB) - added by sunburntkamel 5 years ago.
modified tiny_mce_gzip
tiny_mce_gzip.php.2.1.2.patch Download (777 bytes) - added by sunburntkamel 5 years ago.
updated patch for 2.1.1

Change History

  • Priority changed from low to normal

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

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

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)

comment:4   ryan5 years ago

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

comment:5   ryan5 years ago

  • Priority changed from normal to high

newp, neither installation.

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: ↓ 9   ryan5 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   sunburntkamel5 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.

and no, no plugins. except akismet.

i added:

ini_set('output_buffering', 'off');

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

  • Milestone changed from 2.1 to 2.1.1

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

Does deleting ob_gzhandler() fix it?

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?

check wp-includes/js/tiny_mce_gzip.php

comment:17 follow-up: ↓ 18   andy5 years ago

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

modified tiny_mce_gzip

comment:18 in reply to: ↑ 17   sunburntkamel5 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.

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.

  • 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?

the hack is no longer working.

updated patch for 2.1.1

  • Owner changed from anonymous to andy
  • Milestone changed from 2.1.3 to 2.2

trunk has a new tinyMCE compressor that might help.

yep, latest SVN works on a test install.

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

Excellent, we will call this fixed then.

Note: See TracTickets for help on using tickets.