I receive error:

warning: Illegal offset type in isset or empty in /modules/dependent_fields/includes/form_elements.inc on line 129.

As controller filed I try use text field - check-boxes and I try control text field -> text select

Regards

Comments

smoothify’s picture

Status: Active » Closed (duplicate)

Merging a few issues related to the text field implementation, which needs to be improved to allow more functionality and fix some bugs.

Marking this one as a duplicate to help me clear up the queue.

#1050622: Improve text field implementation & fix bugs

tsimms’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha1
Component: Code » Field Implementations
Status: Closed (duplicate) » Active

I've opened up this ticket, only because I see the same error message on a node reference field. So I'm pointing out that it doesn't appear to only be an issue with text fields.

jenyaart’s picture

Title: Error warning: Illegal offset type in isset or empty in » Error warning: Illegal offset type in isset or empty in ... on line 129

I'm getting the same error... Trying to get one Node Reference field to act as a controller field to another Node Reference field. Both fields are select lists. It actually seems to work the way it should, except for this ugly error:

warning: Illegal offset type in isset or empty in ...../sites/default/modules/dependent_fields/includes/form_elements.inc on line 129.

Any ideas how to remove it?

pablov2’s picture

+ subscribing

I have the same issue

marc.groth’s picture

Subscribing... I am also getting this error.

The problem seems to be that the value of $value (which is an array) is being used as a key for another array (is that even allowed?).

I tried changing this line (line 130):

if (!isset($options[$value])) {

to

if (!isset($options[$value[0]])) {

which makes the error message go away. But not sure if that actually breaks anything... Anyone able to test and try? I've yet to actually get this to work the way I want (think I'm missing something!)

smoothify’s picture

I believe this is already fixed in the dev version, which will shortly be rolled into a new release.

smoothify’s picture

Status: Active » Closed (cannot reproduce)