Closed (fixed)
Project:
Node Gallery
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Nov 2008 at 16:46 UTC
Updated:
10 Jul 2009 at 21:37 UTC
Hi there,..
Have to say nice one! this looks fab... a nice and intuitive way of adding galleries to a page,
Problem: when uploading an image, it make the folder for the gallery, uploads the image, gives me a list of the images and which one I want as a cover....
... then what.
I press submit and it displays both forms and error message saying 'You must upload an image.'
I go back to the gallery list and there are no images in the gallery.
any ideas?
cheers,
joeJ
Comments
Comment #1
wilson98 commentedthanks, could you describe it more detail. i've tested it on my local machine and couldn't repeat your issue.
Comment #2
artscoop commentedHi,
User access checks seem to not work properly in languages other than English.
I've spent hours yesterday trying to upload images to my gallery.
Here are the steps to reproduce :
1. Test a new Drupal installation with another language installed (in my case it is French), and run your account with the new language (let's say French or German, they are close enough to english)
2. Install all the modules needed to operate (Image, ImageAPI, Node_gallery, etc.)
3. Configure node_gallery to assign a content and a container
4. Login as an auth user, create a new gallery container : You should not see the links to upload or manage your own gallery, even if you've set the appropriate permissions.
I've then tried to fix some code that looked wrong :
function node_gallery_user_access($op, $gallery = NULL) in node_gallery.module
(It seems that it checks for permissions that don't exist in the role permissions list)
I changed occurrences like this :
return user_access('create '. $gallery_config->image_type .' content');
with something like that :
return user_access('create '. $gallery->type .' content');
as $gallery->type is the name used in the permissions list.
Then I could see the links to manage my galleries (and as expected, I couldn't add images to someone else's galleries).
I then tried to upload images.
The form for image uploading shows, I select one image, I press "Submit files", the image appears in a drag list.
Then I confirm my choice with "Submit", and nothing : "You must upload an image"
Now, if you set your language to English, all should work properly.
Comment #3
Marko B commentedI have exect same problem. But i wouldnt say its associated with languge as i am using default user and no lang change or support.
Just as i was getting smile on my face as i finally got solution for my galleries this happend f... "You must upload an image" keeps repeating.
Also this happend now, when i click to gallery list deault theme appears, altough admin theme is set as garland and Use administration theme for content editing is checked, but ok this is minor problem.
I'll make a clean drupal install and put first node gallery and try it, and then all the other stuff i have need that could or are making this problems, as i have ImageCache and Image and Views 2 and patches to make them all work together etc so maybe there is some clashing or something. I dissabled also simplmenu and devel modul, thinking it could be some JS problem when hitting submit, but still nothing is submited, also as artscoop said, images are on server, just cannot make them go into DB :-( I'll post a followup to this message with new info i hope...
Comment #4
Marko B commentedTried on new drupal installation. Drupal is latest 6.6 and imagecache also and imageApi. Hate you for makeing such a good module and not making it work! :-( :-)
Comment #5
markosef commentedyeah, tried also other versions alpha 1 and 2 and same problem. Hope its solves out quickly as its great module and idea.
Comment #6
kmontyI'll look into this when I have a chance.
Comment #7
nancydruMarked #420762: Cannot upload images as duplicate.
I am having this problem too. My site is English only and using latest dev on 6.10.
Comment #8
nancydruUsing the latest code, it worked fine out of the box with the existing settings. However, I set up a new relationship using the standard gallery type and the Image type from the Image module and this error returned.
Comment #9
passion4code commentedThe exact problem that you stated, Nancy, is what I am wrestling with at the moment.
Comment #10
Anjaro commentedHad the excact same problem as described.
I tryed everything with no luck, images was uploaded and thubs etc. was created but no images in the gallery.
Then i tried to switch to default garland theme and now everything works.
Im no good at programming and so on so i can not help why this happens or what could be wrong with the theme i use, but just to eliminate that it can be the theme that cauce the problem, just try to use garland.
Thanks
Comment #11
kmontyWhat theme were you using?
Comment #12
Anjaro commentedI use this theme.
http://drupal.org/project/acrylic
The theme is nice but not that important to me, there is plenty to chooce from.
But im just saying that people who have this problem could try out the default theme so they can rule out that possibility.
Thanks
Comment #13
nancydruI was using Garland at the time.
Comment #14
kmontyI am closing this issue as it relates to version 1, which is no longer supported.
If anyone continues have this issue with version 2, please create a new ticket with as much information as possible.