Multiple-select gallery vocabulary
| Project: | Image Gallery Access |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Recently started getting the following error message when editing an image node:
warning: Illegal offset type in isset or empty in /home2/lbp/public_html/modules/image_gallery_access/image_gallery_access.module on line 44. warning: Illegal offset type in /home2/lbp/public_html/modules/image_gallery_access/image_gallery_access.module on line 45. warning: Illegal offset type in /home2/lbp/public_html/modules/image_gallery_access/image_gallery_access.module on line 48. warning: Illegal offset type in /home2/lbp/public_html/modules/image_gallery_access/image_gallery_access.module on line 48. warning: Illegal offset type in /home2/lbp/public_html/modules/image_gallery_access/image_gallery_access.module on line 48. warning: Illegal offset type in /home2/lbp/public_html/modules/image_gallery_access/image_gallery_access.module on line 52.
Drupal 5.7
PHP 5.2.6
ACL 5.x-1.6

#1
I cannot reproduce this error. I've found that $node->taxonomy can be either an array of term objects by tid (term id) or tid by vid (vocabulary id). Apparently, you are now seeing a third variation. Can you find out what it is?
You write you "recently started getting" these messages — what has changed? Any new modules installed? Any new vocabularies created?
#2
I have the same error, it was appear when I activate multiple selection in the vocabulary.
Thanks.
#3
Multiple selection in the image gallery vocabulary? Does that work?
#4
Yes it works, I use it to put an image in several galleries
#5
Amazing! It does work quite well (except for the breadcrumbs, which can't distinguish the galleries).
I've added support for a multiple-select gallery vocabulary, but there's one thing you should know: each gallery contributes its grants to each of its nodes. This means that if a node in a read-only gallery is also present in a gallery where the user can edit the nodes, then the node will be editable in both galleries.
It's the same as for the breadcrumbs. If you're looking at a single node, neither the breadcrumbs nor IGA can know through which gallery you came to this node.
Committed to -dev. Please let me know how it works for you.
#6
Automatically closed -- issue fixed for two weeks with no activity.