Trouble shooting node_gallery

6.x-2.0-alpha10; Issues that have been brought up in the node_gallery issue que. Some of the fixes listed may not fix your trouble, but then again, it may very well be worth the time to try. If you have had some problem and found and answer that will help people, please add it to this page.

Issue: Only administrator can upload images

Installed node_gallery, imagecache and ImageAPI, created an image gallery, uploaded 5 images and it all worked as it should while I was logged in as admin.
Logged out of admin and logged in as user 3 (not admin), created an image gallery, fill in the fields click save the next page loads up, i get the text - There are no photos in this gallery. Upload Some! - go to upload some, click browse select an image to upload click submit files the page refreshes and i get -
Trouble: The selected file 8512645.jpg could not be uploaded, you could only upload files.
Everything has been checked and looks ok, permissions, memory limit, rebuilt permissions.. nothing worked.
Here's what I did:
1. Disabled/Enabled all Node Gallery Modules (I don't think I had to do this)
2. Rebuilt Permissions as directed
3. Went to the Node Gallery settings page (/admin/settings/node_gallery)
4. On this page I clicked edit for the 'Node Gallery Default' and then clicked 'Next' on the next page
5. For Gallery Directory, I entered 'gallery/%gid'
6. Increased number of upload fields to 10.
7. For all Upload limitation user roles, I entered 8MB (Default max size), 60MB (Default total size) and 50 (Default total file number).
Everything works as it should now. I have a feeling it was the Gallery Directory field that did it for me.
by mdnola504

Installation fails if imagecache is not already installed.

This is mentioned in the handbook, but you may land on this page. When installing imagecache at the same time as node_gallery, the installation process does not (necessarily) install things in the correct order.
Since node_gallery.install contains a call to imagecache code, things can fail.
The Fix: Install or enable imagecache and imageAPI first, then go back and enable node_gallery. The developers are working on the solution for this. Until it goes in, here is the patch(in review) if you want to add it yourself.

Admin edits a user gallery, the user ID of the item edited changes to admin's ID

When a user, such as one with administrative permissions, edits a gallery created by another user, the user ID for the changed image node changes to the user ID of the changing user. For example, if I use the Manage images link on the Gallery page to edit a title or caption for one image, after I save the changes, I show up as the author of the image node. That is, the node's original author is changed to show the latest editor as the author. The other images in the gallery are not changed. The gallery page shows all the images, even the one that now has a different user/author.
a Work around Until it's fixed: Install masquerade and change to the user that created the gallery before editing, then change back when editing is done.

 

Back to Top

 Back to Top