Passed variable is not an array or object in /modules/vocabperms/vocabperms.module on line 167.

Installed, selected so only admin can edit a particular vocab. When trying to submit node form with a regular account ( view only), this error appears. Any ideas?

Comments

douggreen’s picture

Looking at the code, $elem['#options'] should be an array. I just added support for free tagging vocabularies, and I'm wondering if this is the options array that isn't an array, is for a free tagging vocabulary. Please confirm that the problem is with a free tagging vocabulary. If it is, I've got an easy fix.

chadchandler’s picture

Hey Doug,
Sorry to report this is not for a Free-Tagging vocabulary. The module does as it's supposed to and removes the vocab from the user roles who are not approved to edit, it just gives errors at the top of the page.

liquidcms’s picture

Are you using tax super select - this sounds like: http://drupal.org/node/154288

douggreen’s picture

I just committed a patch for #154288. Please re-test and see if that change also fixed this issue. Thanks!

jcisio’s picture

Status: Active » Postponed (maintainer needs more info)
jcisio’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)