IMCE is a great program. I recently updated (Nov. 17 2006) both version 4.7 and 5. They both works in Operal 9 and firefox 2, but it cuase blank screen in IE 6.

Nov. 18, 2006

Comments

ufku’s picture

Title: Internet Explore 6 » IMCE Internet Explore 6 problem

I usually test IMCE on IE6 at first then i test with Firefox and Opera. I have never had a problem viewing IMCE with IE6. However, configurations may differ. Can you be more specific on this issue? Did you try IE6 on any other computer? Do both 4.7 and 5 versions have problems with IE6?

Budrick’s picture

Also have problem with IE 6.
IMCE popup window loads frontpage in IE.

If I stop loading at the very begining (by hitting ESC), in Firefox source code shows:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <title></title>
 </head>
 <body></body>
</html>

after that normal IMCE window is loaded.

In IE 6, in the beginning of the load it shows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <META http-equiv=Content-Type content="text/html; charset=windows-1251">
 </HEAD>
 <BODY></BODY>
</HTML>

and than it redirects to frontpage.

imce.module,v 1.8.2.15 2006/12/09 17:48:06
Drupal 5 beta 2

Budrick’s picture

I discovered that it is "access denied" error.
If I allow Anonymous user to access IMCE - window opens in IE, but it creates 'u0' directory.

So I think problem is in passing session information to IMCE window.

ufku’s picture

do you have the same problem in user/yourID/imce page? ... just to clarify if it is a pop-up issue.
in that page an iframe is used instead of a pop-up.

Budrick’s picture

user/yourID/imce page works OK.

I discovered that session handling in new window is not solid in IE, many people meet that problem (yet not permanently).

I found a decision: adding "&PHPSESSID=someValue" to window.open url in imce_set_inline.js
and if ($_REQUEST['PHPSESSID']) $_COOKIE['PHPSESSID'] = $_REQUEST['PHPSESSID']; to index.php of Drupal

Of course it is not good.
I wonder, is there a way to pass cookie to new window with javascript?

Budrick’s picture

...or insert this line

 if ($_REQUEST['PHPSESSID']) $_COOKIE['PHPSESSID'] = $_REQUEST['PHPSESSID'];

somewhere not in core, but before session handling by Drupal.
I tried hook_init, but it fires too late...

ufku’s picture

you're right, budrick. after some googling i found many variations of the issue. In our case it may be specific to FCKeditors modalDialog(here). Did you only tested with FCKeditor? Could you help testing the other options, tinymce and plain textarea? You can find them all in a single page at IMCE demo page. Drupal module is enabled, you can either login with drupal.org username or create a new account. And also it would be very helpful if you report the result of changing(lowering) browser cookie settings. Sorry for using you as a debugger ;), uexpectedly my IE is working normal.

Budrick’s picture

All above tests I performed on plain textarea only.
Have tried demos on your page - plain textarea and FCK works fine. IMCE is broken - it does not shows an editor.
In IE 6 it gives "Line 70, symbol 3 tinyMCE is not defined"
In FF it is:

invalid flag after regular expression
tiny_mce_gzip.php... (line 2)
<b>Warning</b>: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in <b>/home/ufkucom/public_html/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php</b> on line <b>66</b><br />
nulldemo (line 71)
tinyMCE is not defined

I forgot to mention that I am using thicky template given by customer - it uses loading of content into iframe and then putting it to main page with .innerHTML, dynamical loading of scripts. So it is really uncommon environment for IMCE to work in. Im sure that in standart configuration everything works OK, and demos on your page confirmed that.
But I still hope to make IE to work properly in that sophisticated environment as Firefox does. Now I can get IMCE browser window, but after image upload it still redirects me to frontpage. I keep fighting...
And what do you mean by changing(lowering) browser cookie settings?

ufku’s picture

thank you so much for the tests, budrick. cookie settings are in Privacy tab in IEs "Internet Options". i read an article stating that if the cookie restriction is medium or high, popups or frames may silently deny the parent windows cookies. however, with my IE i couldtn confirm that, too :(.

Budrick’s picture

After some hacking at last everything works OK
What about IE security settings - I dont want to make users to change any settings.
I also discovered that IE does not allow to set cookies within javasctipt. Maybe it is due to those security settings. So I had to do it in php.

And thank you so much for the great module!
As for me - the most convenient and usable image tool for Drupal.

faqing’s picture

I downloaed and intalled the new version for drupal 5cr1 on the Dec. 25. 2006. It works fine for IE 6, IE 7.
Thanks

phoenixblue’s picture

ah.. it didn't work for me with IE 6
i could upload images and all that but when i click add/drag img to the textfield i get this:

A Runtime Error has occurred
Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus

works in firefox thou.

ufku’s picture

please indicate your method of using IMCE. with tinymce? fck? inline? get this error on both image and link insertion?

this error is thrown when the target field that IMCE writes the file path is invisible. For example, when you are using both tinymce and IMCE's inline insertion, inline isertion wont work becouse the textarea is made invisible by tinymce.

phoenixblue’s picture

With tinymce..
erm.. so how do i fix this problem?

WeRockYourWeb.com’s picture

Hi ufku,

Thanks for the demo page - very nice. I see that your demo FCK/ IMCE works in IE - something I have not been able to get to work using Drupal 5.x and latest dev of FCK/ IMCE. Can you share your demo Drupal and FCK/ IMCE versions and how you got it to work?

Thanks!
Alex

ufku’s picture

Drupal 5.3
FCKeditor 5.x-1.1
IMCE 5.x-1.0

I dont know the version of fckeditor(not drupal project), as it is quite old.

ufku’s picture

Status: Active » Closed (won't fix)