this issue is in drupal 5.16

after a submit, or edit update, image picker disappears. this happens in the iframe, and when in its own window (white screen) with no code at all. Safari says "cancelled opening page" ff says nothing. love the module, but need to upload correctly

thanks!!

PS- ive backported from the newest dev for drupal 5 back...and have checked in multiple themes (garland, minelli etc)

using latest jquery update as well

thanks!

r

Comments

hutch’s picture

1) Check that the 'files' folder (and those below it) have write permissions, either global or for the webserver user. I'm assuming apache2 webserver here.

2) WSOD is usually caused by either a syntax error in the of code or a corrupted file. I am sure it is not the former so I would suggest downloading imagepicker-5.x-2.x-dev.tar.gz again, unpacking it carefully and uploading that.

The 2.x series, when installed as new will use the user id to identify which folder belongs to the user. The 1.x series used the user name. If 2.x is installed over a 1.x setup it will detect that and give you the option to validate the old system (ie check that there are no orphan files and that the file permissions are correct) and if it passes validation to change it to the new method.

If you haven't managed to get any files to upload then the problem is most likely 1)

HTH

funkeyrandy’s picture

hello and thanks for the reply!!

i made the permissions 777, uploaded the new dev version, validated and im still seeing the same issue.. images upload fine, as well as group creation etc....just WSOD after submit or save...even if im just filtering! i should say that adding or editing groups works fine..thanks for your help! i cant wait for this to work!

funkeyrandy’s picture

also...the iframe is in the source of the page:
Image picker

Imagepicker requires iframe support.

its just not loading

EDIT:

ive removed all javascript calls as well to no avail
i should also say that group creation and editing inside a node works fine

getting blank screen on:
image submit
group filter
image edit

hutch’s picture

What happens when you go to
My Account > My Imagepicker > Browse (or List)
Does it show the thumbnails (or show a list of files)?

The 'browser requires iframe support' is normal, that's what you see if the browser is very old ;-(

If the file permissions are right and there are files actually there under files/imagepicker/x (where x is either username or user uid) then it must be a php permissions problem.

This is probably not possible but if you can get php logging going you will likely see the error in there.

funkeyrandy’s picture

when i go there, everything is fine...i see the images, and can browse to their full entry....

its wierd because when i het the back button after a blank screen, is show what "should" have been shown normally.

thanks for your help on this...i need it reel bad for a launch monday so any insight would be appreciated!!!

could it possibly be an iframe javascript conflict? actually scratch that..it does it on its own page as well

not sure if this is related, but im getting this error on validation even though everything else is fine :

* file not found in database: business-1.jpg
* Validation of directory structure failed, please correct the above errors before continuing.

funkeyrandy’s picture

i may have found something:

it work when i use my default MAIN them instead of my custom theme...seems like its not utilizing the admin theme after submit...know what i mean?

for example, i have "wabi" as my admin theme, and a custom front template...that doesnt work, but when i switch the custom template to newsportal (default) it works...

not sure if it is the admintheme module or my custom theme itself (although that should not have anything to do with the admin area)

any thoughts??
PS- now it keeps saying:

the image does not belong to me

hutch’s picture

You need to remove business-1.jpg from files/imagepicker/x. it has no database entry so it cannot be used.
Once that is done you can convert to using uid instead of username.

hutch’s picture

Well you have established that this is a theming problem. I don't know much about theming although I notice that some themes are more 'compliant' than others.

the image does not belong to me

You need to go through the database entries in the imagepicker table and compare them with the actual files and remove any anomalies, of course you should backup before you start to repair things ;-)

funkeyrandy’s picture

ok ..thanks!!! i think im ok now..one thing though:

how can other roles have access to other created groups for tagging? i dont see this ability..(i added images as an admin, and want "editors" to be able to tag their images to MY groups)

thanks!

randy

hutch’s picture

You are right, it does not have this ability.

hutch’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)