I just installed image picker, and it's not working, but I can't figure out why not.
Permissions seem to be in order - it created a directory in my files folder - but when I try to upload something (even a small jpg file) it says "Error while uploading file". I don't know what error, though!
I also tried manually putting an image into the image picker file folder, to see if I could access that from the browse tab, but that didn't work either. Well, I could put the image there all right, but it's not showing up under "browse".
What could be going on? Any suggestions?
(I'm supposed to have this site ready for a test run by tomorrow, and would be nice to have the image uploader working when I show it off!)
Comments
Comment #1
hmb_site commentedPartially solved...
I figured out that one of my problems was retaled to this: http://drupal.org/node/146030
NOW I am getting ANOTHER error: "Unable to create a directory structure for your images" but I see that many people have had that, so I'll check around in the other threads.
Comment #2
hutch commentedMake sure that your 'files' folder has read/write permissions for 'other' or 'global' or somesuch, or chmod 666 or whatever your server supports.
Comment #3
hmb_site commentedHa! I fixed this!
Okay, this is what happened:
1. The error from uploading was because I could not write to the temp folder.
2. After I fixed that, I could not build a directory tree. I had one before, but I deleted it when I upgraded to the newest version
3. I uninstalled image picker again, removed all files, and reinstalled it from scratch
4. It built a new directory tree, yay! (Checked by looking for a new "imagepicker" folder in the files folder.)
5. New problem: did not see Image Picker in the screen for creating a new node
6. Truncated cache_menu in phpMyAdmin to fix this
7. New problem: site now times out because it takes too long to rebuild stuff without the cache
8. Changed max_execution_time from 30 to 180 seconds in php.ini
9. Restarted the server
10. Page loads AND...Image picker works!!!!
It was a roundabout way of doing things, but it works!
Comment #4
hmb_site commentedThe permissions were fine. I just deleted the imagepicker folders at some point, and didn't properly reinstall everything. Fixed it by reinstalling Image Picker from scratch, and a bunch of other things (see my other comment)
Comment #5
hmb_site commentedComment #6
hutch commentedWell, quite a saga!
If you use the devel module you can flush the cache a bit more gently I think. You can also go into admin->menu and save an item, that rebuilds as well