Hi,

This module was working beautifully until I added an SSL certificate to the site. Now that the edit pages have HTTPS URLs the module returns the following error in Firebug console:

Permission denied for #unprotected URL# to get property Window.Drupal from #protected URL#.

I would be glad for any help on how to fix this!

Comments

rpk’s picture

After configuring Secure Pages so that edit pages are no longer secured, it seems there is an additional problem: Whenever I click into the FCKeditor window Firebug reports a "node is null" error.

When trying to insert an image the wysiwyg image upload module seems to work fine and the image is placed inside the text edit window. However, after saving the node the image does not show up and no image code has been added to the node.

It seems this may now be more FCKeditor related rather than have to do with wysiwyg image upload, but since I'm not sure I would appreciate any insight you may have about this!

eugenmayer’s picture

Do you have activated an image API. Do you have any presets?

Iam using wysiwyG_imageupload with https and it works. In you case it seems like there seems to be a access from http -> https or https->http so mixing it up or something.

rpk’s picture

After further testing, it is clear that FCKeditor doesn't allow to make ANY changes to a node anymore, even simple text changes. So this is no longer related to wysiwyg image upload!

Thanks!

eugenmayer’s picture

Status: Active » Closed (fixed)

thanks for reporting back

rpk’s picture

Priority: Normal » Critical

Hi Eugen,

On even further further testing, it turns out that the information IE8 gives about the error is:

Message: '$' is null or not an object
Line: 19
Char: 7
Code: 0
URI: http://www.MYSITE.org/sites/all/modules/wysiwyg_imageupload/plugins/imgu...

Lines 19 - 23 in imgupload.js are:

if(node.$) {
// This case is for the CKeditor, where
// $(node) != $(node.$)
return $(node.$);
}

I'm not exactly sure what this means and would be glad for help!

rpk’s picture

Replacing imgupload.js with an older version of the script (imgupload.js,v 1.1.2.13 2010/02/02 22:08:44 eugenmayer) fixed the "Node is null" problem. Editing text and inserting images now works again in Firefox.

However, in IE8 inserted images show with a broken image icon. Only after clicking the "source" code button in FCKeditor and clicking it again to go back to the standard view the image, processed through imagecache, appears. Saving the node works fine afterwards and the image shows. Without switching to source view once the image will not get inserted and saved.

rpk’s picture

Priority: Critical » Normal
eugenmayer’s picture

Status: Closed (fixed) » Active
eugenmayer’s picture

Title: HTTPS: Permission denied » IE8 problems
Category: support » bug
eugenmayer’s picture

Status: Active » Fixed

fixed in 2.0-beta4

eugenmayer’s picture

Status: Fixed » Closed (fixed)