Drupal 5.7; Imagepicker 5.x-1.2
I can upload images fine but when I click insert nothing happens except the iframe reloads. I'm not using a wysiwyg editor and I see a javascript error where it's checking for TinyMCE, but no clues as to why it's not working. Tried it in Firefox, Opera and Safari. Any debugging suggestions would be appreciated.
Comments
Comment #1
hutch commentedI don't think Drupal 5.7 has anything that would prevent imagepicker from working but I might be wrong.
The section in imagepicker.module that does the insertion is from line 832 - 854
The only time I experienced the behaviour you are seeing was during development and where I had a javascript error so it did not run at all.
As you are seeing a javascript error you could try this:
You will see two ways of checking for TinyMCE on line 840 and 841, you could try uncommenting 840 and commenting out 841
Having said that they both have worked, the one on line 841 is better but YMMV
Hope this helps.
Comment #2
eclauset commentedI tried uncommenting 840 and commenting out 841 but I'm still seeing the same behavior. the javascript errors are similar:
Error: Permission denied to get property Window.tinyMCE
Source File: http://www.....org/imagepicker/browse/1
Line: 102
Error: Permission denied to get property Window.document
Source File: http://www.....org/imagepicker/browse/1
Line: 101
Comment #3
hutch commentedThis looks like a browser problem, which browser?
I don't have permissions to try this, 'access denied' in daylightmagazine.org link
Comment #4
eclauset commentedI think I've figured it out -- I was using the Secure Pages module to force admin pages to load via https but the imagepicker path was not secure; adding imagepicker/* to the list of secure pages seems to have fixed the problem.
Comment #5
eclauset commented