I get the following error while trying to upload an image (using "add image" link) through the tinymce/image-assist interface (using latest CVS-- clicking on camera icon-- or using the older version):

The browser window has lost communication with the parent form, so images can no longer be inserted. This problem is usually solved by reopening this window from its originating link. Would you like to close the browser window now?

I've enclosed a picture of the offending problem of two browser windows opening (I know this shouldn't happen, because I can get the image_assist.module working on its own-- no double window problems).

No other errors seem to be associated with this problem and reopening the image_assist window shows me that the image did upload successfully and can now be inserted. Weird.

Any help with this issue would be greatly appreciated. Thanks for the great modules!

CommentFileSizeAuthor
twowindows_0.jpg37.79 KBbomarmonk

Comments

matt westgate’s picture

Can you confirm that the two windows opening is restricted to just Internet Explorer?

bomarmonk’s picture

It appears to be... it doesn't happen with firefox, but I can't insert an image after uploading ("add image"). I must close the image_assist window and reopen with the camera button.... then I can insert the image I just uploaded.

bomarmonk’s picture

Update: image_assist and Tinymce appear to be working properly together when using the Firefox browser (trouble free at this point-- after downloading latest update to image_assist)

The double pop-up windows still occur with Internet Explorer.

matt westgate’s picture

I don't have Internet Explorer to work with at the moment but I may have solved this in my latest patch to img_assist (Revision: 1.14). Care to give it a try?

bomarmonk’s picture

I still get two browser windows and the message: "The browser window has lost communication..."

matt westgate’s picture

This should be fixed now.

matt westgate’s picture

I should mention that both img_assist and tinymce need to updated to resolve this issue.

bomarmonk’s picture

Priority: Normal » Critical

I am using Internet Explorer. I did not cross-post to tiny_mce (sorry about that). I am changing this to active and critical, as the following errors are "show stopping" bugs for anyone using Internet Explorer.

Just updated to the latest of tinymce and image_assist and I'm still having the same issues (or close to the same).

Using the original image_assist button with tiny_mce enabled: I can upload or "add image" fine, but when it comes time to insert the image I get this error:

Line: 12
Char: 7
Error: Object doesn't support this property or method Code: 0
URL: www.mysite/drupal/img_assist/add?editor=tinymce

If I use the camera icon to open image assist, I get a script error followed by double windows:

line:36
char: 3
Error: unspecified error
Code: 0
URL: http://www.mysite/drupal/modules/tinymce/tinymce/jscripts/tiny_mce/theme...

Do you want to continue running scripts on this page?

If I click yes, to continue running scripts, a double-window will still open with the "Add Image" button. When trying to insert an image, I get another script error (identical to the error for using the original image assist button) and the image won't insert.

matt westgate’s picture

This should be fixed now. Please give the latest versions of img_assist and tinymce a spin.

Anonymous’s picture

skim443’s picture

I am re-opening this issue because I am seeing the same problem. Here is the version information:
img_assist: 1.43.2.8
tinymce: 1.21.2.8
ie: 5.5

When I use the original img_assist button and try to add an image, I get the following error:

"The browser window has lost communication with the parent form, so images can no longer be inserted. This problem is usually solved by reopening this window from its originating link. Would you like to close the browser window now?"

When I try to click the camera in the tinymce editor, I get a "404 page not found" error.

As a side note, these are some great modules.

benshell’s picture

I'm having this problem too, using the latest CVS versions (as of today) of everything: drupal, image, image_assist, tinymce (module & editor). I'm not getting two windows like bomarmonk was, but I'm getting the "browser window has lost communication with the parent form" error. I'm getting the error with Internet Explorer 6 and Netscape 7.1 (the only two browsers I have installed right now).

matt westgate’s picture

Is this still an issue with the latest version? Most folks get this error when they have blockup stoppers enabled.

ñull’s picture

I experience the same pop-up message "The browser window has lost communication...." with both Firefox and IE. In both pop-up blocking was specifically deactivated for the domain.

edrex’s picture

Version: » 4.6.x-1.x-dev

The 4.6 versions img_assist and tinymce do not work together in IE. This is a big problem! I don't know if they work in head (confirm anybody?), but any fix should be backported to the 4.6 branch! I can do the backport if somebody can clue me in on exactly what was changed.

Thanks
Eric

syllance’s picture

please see http://drupal.org/node/20934

i've send a patch that fixes the "lost communication" issue, and don't have any problem running tinymce/img_assist with IE.

edrex’s picture

I was trying to fix the stock img_assist button with tinymce (which would have the added benefit that it would work in even with tinymce disabled). But your patch provides a solid workaround, thanks much.

Patrick Nelson’s picture

As per 44621, this problem has raised it's butt-ugly head again in HEAD. Using 4.7-beta 5 and CVS versions of both img_assist (1.54) and tinymce (1.76). The error message is still browser window has lost communication with... blah, blah, blah.

Any ideas anyone?

benshell’s picture

Version: 4.6.x-1.x-dev » 6.x-3.x-dev
Assigned: Unassigned » benshell
Status: Active » Fixed

I am the new maintainer for img_assist, but I am only supporting img_assist 4.7+. I just committed a new 4.7 version of img_assist to the CVS repository. I can guarantee you won't see this error again, because this error isn't even in the code anymore. Img_assist and the drupalimage plugin have pretty much been completely rewritten, so hopefully you'll find that they work better.

benshell’s picture

Status: Fixed » Closed (fixed)