Empty list when adding a picture

Nicolas_85 - July 3, 2008 - 15:58
Project:OG Galleries
Version:5.x-1.7
Component:User interface
Category:support request
Priority:critical
Assigned:Nicolas_85
Status:needs review
Description

I have an issue with og gallery.

I've set up og gallery and I can add a gallery to a private group.
But when I try to create an image from the group box, I have an empty list, so I can't choose a gallery.

Regards,

Nicolas.

AttachmentSize
og.JPG45.94 KB

#1

jacobson - July 8, 2008 - 15:17
Priority:normal» critical

I am having a similar problem, except that I see only one of the OG galleries that I've created. This is a recent phenomenon on my site since I used to see all the galleries. I believe the problem arose when I tried adding a new gallery.

Additional information. Upon further investigation, it seems that the Select statement for the galleries list on the add node form ignores the first gallery (alphabetically) for each gallery vocabulary.

HAJ

#2

Nicolas_85 - July 9, 2008 - 11:09
Status:active» closed

Thanks but in fact, I've tried another way : http://drupal.org/node/257747 which works quite well.

Regards,

Nicolas

#3

xJulian - July 22, 2008 - 18:10

I've also run into this problem. For anyone who is interested, here's a quick fix for people using version 5.x-1.7.

DISCLAIMER: I'm not affiliated with the maintainer(s) of OG Galleries and not very familiar with the code. This fix may break other functionality or even harm your data. Very untested! Use at your own risk!

In og_galleries.module at line 303, you'll find this code:

if ($tid > 0) {

Change to:

if (($tid === 0) || ($tid > 0)) {

This adds a (type safe) check for 0, since it seems the array index for the first gallery is indeed 0. Removing the check altogether gives weird results though, so the explicit check is still necessary.

This works for me. I repeat: Use at your own risk!

#4

jredding - November 20, 2008 - 10:28
Status:closed» needs review

Providing a patch for xJulian's code

AttachmentSize
xJulian.patch 602 bytes

#5

kims - November 29, 2008 - 09:46

After applying this patch, i only get at option called Main, not the actual group galleri, but it is a great improvement, couse before i allso didnt have any options.

Can anyon point me in the right direction, so i can get my og galleries up and running.

Btw. my group node, shows the correct terms, with all the galleries, but it's not the right way, to create a group when i want at image in my group galleri.

Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.