Last updated January 5, 2010. Created by dbeall on September 22, 2009.
Log in to edit this page.
6.x-2.0-alpha11; 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 an answer that will help people, please add it to this page.
- Contents
- Basic Drupal troubleshooting
- Imagecache not creating folders or serving images
- Directory tokens not working
- Only administrator can upload images
- user ID of the item edited by admin changes
- Images are not uploading, try switching themes
- How to enable "My galleries" on navigation menu
- Change name of ImageCache preset breaks node_gallery
- Views shows repeats for gallery covers.
Basic Drupal troubleshooting
What did you do, what were your last steps. Something is causing the trouble. A good place to have a look, Troubleshooting-FAQ and How to troubleshoot Drupal.
ImageCache not creating Image folders or serving Images
This was added to the installation steps, but some people may land on this page.
Trouble: The images upload to the galleries, but the thumbnails do not show. Only the Image file names show in the gallery (image5.jpg).
The Fix: ImageCache requires that clean URLs are enabled in order to work.
Goto: Administer > Site configuration > Clean URLs
system path admin/settings/clean-urls
Directory tokens not working properly
Trouble: The node gallery is working just fine, but the tokens for the directory path are not working properly.
After setting the tokens such as: members/%username/%gallery_name
this should create the galleries as: members/admin/my-cool-road-trip
But it is creating: membersadminmy-cool-road-trip
OK, But where are the slashes and it's not in the proper directory or even using the existing directory as it should.
The Fix: This is easy, install Transliteration and your directory paths will work as they should..
OR
Use the 6.x-2.x-dev from Jan 4th and your node_gallery will be happy again!
OR
Edit your file node-gallery/node_gallery.pages.inc at line 32$validated_path = preg_replace('/[^a-zA-Z0-9._]/', '', str_replace(' ', '_', $path));
Change it this$validated_path = preg_replace('/[^a-zA-Z0-9._\/]/', '', str_replace(' ', '_', $path));
From the issue que Gallery directory: Token problems, Thanks to Justintime for the fix
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
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.
Images are not uploading, try switching themes
Installed and setup ImageCache, ImageAPI, Node Gallery and all the appropriate permissions are set. I then created a gallery. Visiting the created Gallery I get the message: "There are no photos in this gallery currently. Upload Some!" Everything is fine, so I click on Upload, then I select an image and click on Upload.
Trouble Immediately I am redirected to the original Gallery page reading: "There are no photos in this gallery currently. Upload Some!". I checked the /sites/default/files directory and there is no sign of the uploaded images, not even in the ImageCache sub-directories.
Check things: I enabled the Upload module (and checked it, it works), which means the Drupal system is working. It's adding images to the file system and displaying them.
The Fix: Switch themes and Viola! It works.. but why. In this case it was a call to jquery-1.2.6.pack.js in the header by a script that uses jquery. It could also be that some themes do not use the php template theme engine, which breaks some modules.
Thanks to Manamarak and Talley for these troubleshooting tips!
How to enable "My galleries" on the navigation menu?
There is a "Galleries List" on the menu to show all the galleries, and I want to just show the logged in user's galleries "My Galleries", how can i do that? In the node_gallery_menu() function of node_gallery.module file already has the "My galleries" menu entry.... so not sure how to enable it?
Trouble: I tried to add My Galleries
to navigation menu, (/admin/build/menu-customize/navigation/add). But it returns an error The path 'My Galleries' is either invalid or you do not have access to it.
Solution: A work around, install project/me for the alias solution. And install prolect/token if you want the [user-name] token.
Goto: Administer > Site configuration > Me aliases
Add [user-name] for the token in the top text box.
[x] Rewrite links generated by the drupal menu system.
Save it.
Goto: Administer > Site building > Menus
Open the menu you wish to use, Add item
Put the menu link path in as 'My Galleries' and it should work.
Changing name of ImageCache preset breaks node_gallery
Case: If you install node_gallery accepting the defaults, and then later go to Administer > Site building > ImageCache > List and change the ImageCache preset names, images will be broken.
Fix: Goto: Administer > Site configuration > Node gallery > list . Edit the gallery relationship, the first configuration screen, click(Next). The second configuration screen, reset the image cache presets and (Save). Resetting the presets is only required when there are more than the three ImageCache presets, others may be in use for something besides node gallery. Either way, you need to use (save). Note that once you go into the admin interface, the drop downs re-populate with the updated names.
Views is showing repeats of cover images.
Problem: is that views is not recognizing the "Distinct" "yes" setting.
Cause: When node_gallery access or project/content_access is enabled, the views "distinct" function will not work. There is probably a 'code' conflict someplace, but at least we found what causes it to happen.
Fix: is to upgrade to the latest 6.x-2.8 version of views.