When I try to insert an image into a node, I now get this error:

window.opener is null
[Break on this error] myDoc = window.opener.document; // global (so don't use var keyword)
img_assi...xtarea.js (line 18)
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://soga.ca/sites/default/modules/img_assist/img_assist_textarea.js :: insertToEditor :: line 90" data: no]

I don't think I changed anything and img_assist was working recently.

Any ideas?

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Did you already try to clear the cache of your browser?

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Without further information I'm obliged to mark this issue won't fix. Feel free to re-open it if you want to provide further information.

mdowsett’s picture

Status: Closed (won't fix) » Active

sorry...I did clear the cache and no change.

I also had installed the upgrade to v1.6 on another site and it is doing 'similar' things. this second site doesn't have the jquery stuff that the first one does and what happens is:

1) when you click on the link below the text area to initiate img_assist, it does open up the helper windo to upload, resize etc. But the main window changes to /img_assist/load/textarea?textarea=body and it's a blank white screen.
2) I then go to that blank screen and click on back to get back to my node edit page and reposition the cursor where I want it to enter the img_assit tag
3) I then flip back to the img_assist window and finish adjusting the image

The above three things happens on both sites

But then when I submit the image, the code doesn't get generated and placed in the node.

It all worked before the upgrades...any advice? Or should I revert to an older version?

thx

sun’s picture

Title: not working all of a sudden » window.opener is null JavaScript error
Category: support » bug
Status: Active » Postponed (maintainer needs more info)

Hm. I'm a bit lost, because I cannot replicate this issue. Do you have jQuery Update installed? Which browser are you using, and, did you already test whether the bug occurs in other browsers, too? Do you have any WYSIWYG editor module installed, and, do you encounter this error if you (temporarily) disable that module? Anything else that could be relevant would be helpful, too.

mdowsett’s picture

I do have jquery_update v2 installed....altho it makes no mention of it being needed for img_assist to work...

i have tested in other browsers with the same behaviour

I do have BUeditor enabled....and have all along (when img_assist was working).

I just tried disabling BUeditor and it behaved exactly the same as described above.

Thanks for your efforts....I've always used this combination (BUeditor and img_assist) in all my sites (since Drupal 4.5) as it was always the combination of editors and image uploaders that work.

Do I need to abandon them?

sun’s picture

Project: Image Assist » BUEditor
Version: 5.x-1.6 » 5.x-1.x-dev

Of course not. However, you might want to try to test whether reverting jquery.js and related JavaScript files to original versions might fix this issue for you.

In general, I think this issue has more to do with BUeditor, because I cannot replicate this bug in any way (with and without jQuery Update). Hence, moving to BUeditor queue.

mdowsett’s picture

all modules are up to date (img_assist, bueditor, and jquery_update)...are you saying I should try older versions?

sun’s picture

No, I meant that you should try to disable jQuery Update module and revert your JavaScript files to the versions that came with Drupal core. Afterwards, clear your browser cache and see whether you can still replicate the bug.

If that does not change anything, try temporarily disabling BUeditor to see whether Image Assist works in general for you (which should be the case).

Unfortunately, it seems the maintainer of BUeditor is not available until 2009 (see project page).

ufku’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

5.x unmaintanied.