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

Comments

salvis’s picture

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?

fgarcia1103’s picture

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

Thanks.

salvis’s picture

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

fgarcia1103’s picture

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

salvis’s picture

Title: Warning: Illegal offset type » Multiple-select gallery vocabulary
Category: bug » feature
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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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