Multiple-select gallery vocabulary

Janner - June 7, 2008 - 08:49
Project:Image Gallery Access
Version:5.x-1.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

salvis - June 8, 2008 - 21:58
Status:active» postponed (maintainer needs more info)

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

fgarcia1103 - August 29, 2008 - 07:26

I have the same error, it was appear when I activate multiple selection in the vocabulary.

Thanks.

#3

salvis - August 29, 2008 - 17:38

Multiple selection in the image gallery vocabulary? Does that work?

#4

fgarcia1103 - September 2, 2008 - 06:32

Yes it works, I use it to put an image in several galleries

#5

salvis - September 7, 2008 - 16:44
Title:Warning: Illegal offset type» Multiple-select gallery vocabulary
Category:bug report» feature request
Status:postponed (maintainer needs more info)» fixed

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

Anonymous (not verified) - September 21, 2008 - 16:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.