Passed Variable is not an array ( node form )

Prodigy - September 10, 2007 - 19:51
Project:Vocabulary Permissions
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

douggreen - September 11, 2007 - 06:39

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.

#2

Prodigy - September 11, 2007 - 14:08

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.

#3

liquidcms - February 6, 2008 - 23:10

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

#4

douggreen - February 10, 2008 - 19:41

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

 
 

Drupal is a registered trademark of Dries Buytaert.