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

wilson98’s picture

thanks, could you describe it more detail. i've tested it on my local machine and couldn't repeat your issue.

artscoop’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.0-alpha3
Priority: Normal » Critical

Hi,

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.

Marko B’s picture

I 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...

Marko B’s picture

Title: upload working but still no images in gallery » "You must upload an image." and you must correct this module :-)

Tried 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! :-( :-)

markosef’s picture

Title: "You must upload an image." and you must correct this module :-) » other versions also

yeah, tried also other versions alpha 1 and 2 and same problem. Hope its solves out quickly as its great module and idea.

kmonty’s picture

Title: other versions also » node_gallery will error "You must upload an image." when using multiple languages
Component: User interface » Code
Assigned: Unassigned » kmonty

I'll look into this when I have a chance.

nancydru’s picture

Marked #420762: Cannot upload images as duplicate.

I am having this problem too. My site is English only and using latest dev on 6.10.

nancydru’s picture

Priority: Critical » Normal

Using 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.

passion4code’s picture

The exact problem that you stated, Nancy, is what I am wrestling with at the moment.

Anjaro’s picture

Had 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

kmonty’s picture

What theme were you using?

Anjaro’s picture

I 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

nancydru’s picture

I was using Garland at the time.

kmonty’s picture

Status: Active » Closed (fixed)

I 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.