When I add the widget to a content type I get this message:

    Warning: Illegal offset type in field_info_instance() (line 702 of C:\xampp\htdocs\relation\modules\field\field.info.inc).
    FieldException: Attempt to create a field of unknown type <em class="placeholder">number_integer</em>. in field_create_field() (line 106 of C:\xampp\htdocs\relation\modules\field\field.crud.inc).
CommentFileSizeAuthor
#4 1363468-4-relation-edit-number-dep.patch483 bytesrupl

Comments

raelianer’s picture

Update: this widget depends on the number module, the dependency should be included.

Gives these warnings anyway:

    Warning: Illegal offset type in field_info_instance() (line 702 of C:\xampp\htdocs\relation\modules\field\field.info.inc).
    Warning: Illegal offset type in isset or empty in field_info_instances() (line 684 of C:\xampp\htdocs\relation\modules\field\field.info.inc).
    Warning: Illegal offset type in isset or empty in field_info_instances() (line 684 of C:\xampp\htdocs\relation\modules\field\field.info.inc).
break9’s picture

Title: Can't add the widget to a content type » Warning: Illegal offset type

I have the same issue:

    Warning: Illegal offset type in field_info_instance() (line 702 of /Applications/MAMP/htdocs/shf/modules/field/field.info.inc).
    Warning: Illegal offset type in isset or empty in field_info_instances() (line 684 of /Applications/MAMP/htdocs/shf/modules/field/field.info.inc).
    Warning: Illegal offset type in isset or empty in field_info_instances() (line 684 of /Applications/MAMP/htdocs/shf/modules/field/field.info.inc).

types of fields being referenced in the relationship are:

Term Reference ->autocomplete
Boolean -> single on/off
Date -> Select List
Integer -> Text field
List -> check boxes/radio buttons
Float -> text field
File -> file
Relation -> no edit widget

not sure if this will help us determine what is wrong. I am assuming that this module doesn't play well with one or more of the field types?

break9’s picture

I uploaded the dev version : 7.x-1.x-dev and the errors went away.

Before the upgrade to the dev install the field would display in node/add or node/edit with the errors in the previous comment. Now the errors are gone but there is no relation-edit field displayed in the node/add or node/edit anymore.

rupl’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new483 bytes

I believe this is because relation_edit requires the core Number module. Enabling the core Number module eliminated the number_integer error for me.

Patch!