1

Topic: tiny_mce_popup.js error

Hello,

i'm expiriencing problem with TinyMCE with two Joomla Editors JCE and TinyMCE.

The "popup" editor feature does not work for both JCE and TinyMCE editors on a few computers only.  Two out of three PCs are affected at home.  There's no problem at my office computers.

Whenever, I click on "html," "Advanced Edit," "Paste from Word," "Paste from Text," etc... -- I get an empty (blank) popup window.

Must be cache/session variables somewhere.

The Firefox "Error Console" shows:

Illegal character
<domain_url>/joomla/plugins/editors/jce/tiny_mce_popup.js Line 1
GIF89a??

See the uploaded image for exact messages for both IE8 and Firefox.  I'd get the same error message when switching to TinyMCE editor, but the path points to TinyMCE editor of course.  IE shows error on line 1 character 7 in the same tiny_mce_popup.js:

Firefox 3.5.3: http://www.internetandpsychiatry.com/jo … hot002.jpg
IE 8: http://www.internetandpsychiatry.com/jo … hot004.jpg

I've spent countless hours trying to understand what is going on.

Any help is greatly appreciated.

Thank you!

2

Re: tiny_mce_popup.js error

spider2009 wrote:

The Firefox "Error Console" shows:

Illegal character
<domain_url>/joomla/plugins/editors/jce/tiny_mce_popup.js Line 1
GIF89a??

[...]
Firefox 3.5.3: http://www.internetandpsychiatry.com/jo … hot002.jpg

The file <domain_url>/joomla/plugins/editors/jce/tiny_mce_popup.js obviously is no textfile and doesn't contain any JavaScript code. Instead it looks like you've got an image file (gif format!) under the name of "tiny_mce_popup.js" (as can be seen in the above screenshot).

Call the URL directly in your browser and you'll see the image. If you do get some JS code instead then ask yourself why those computers would receive an image (binary code) instead of JS code. Is there some security software at work...?

Greetings from Germany,

Felix Riesterer.
(-> about me and this forum <-)

3

Re: tiny_mce_popup.js error

Hello Felix,

Thank you very much for your response.

There's no image.  It's a java script ASCII text file.

See: http://www.internetandpsychiatry.com/jo … hot005.jpg

You can download the tiny_mce_popup.js directly from my site at:

http://www.internetandpsychiatry.com/jo … e_popup.js

I've disabled my security software -- no changes. 

I've downloaded the latest tinynce_3_2_7 -- the same result, even running the example htmls from my PC.


Thank you again.

Last edited by spider2009 (2009-10-22 05:41:04)

4

Re: tiny_mce_popup.js error

spider2009 wrote:

There's no image.  It's a java script ASCII text file.

See: http://www.internetandpsychiatry.com/jo … hot005.jpg

Are you kidding me??? Can't you see the "Graphics Interchange Format Image" in the dialogue window??? This means it's an image file in GIF format! It would seem that your IE interprets the data as a GIF image. I have no clue as to why but this is what your IE says in the screenshot.

spider2009 wrote:

You can download the tiny_mce_popup.js directly from my site at:

http://www.internetandpsychiatry.com/jo … e_popup.js

Your server replies the HTTP request with a "content-type: application/x-javascript" header which might be the problem. IE seems to expect "content-type: text/javascript" instead. This is why I get the download dialogue in IE. Maybe you can do something about this content type header?

Greetings from Germany,

Felix Riesterer.
(-> about me and this forum <-)

5

Re: tiny_mce_popup.js error

Hello Felix,

Thank you for your replies.

You're right, it was "...some security software at work."

I run Kaspersky Anti-Virus on all of my workstations.  However, even when Kaspersky is disabled the script "tiny_mce_popup.js" was treated as a gif file.  I tried the following URIs: http://www.google.com/tiny_mce_popup.js and http://www.google.com/popup.js. 

The same result, the gif file.  As a matter of fact, any URI that contains the string "*popup.js" was treated as a gif file. 

The solution is to add the script to Kasperksy Anti-Banner White list:
http://www.internetandpsychiatry.com/jo … hot006.jpg

Thank you again for your help.

Best regards.

Last edited by spider2009 (2009-10-23 02:02:52)