Notice: Undefined index: behaviors in _entityreference_field_instance_settings_form() (line 508 of /*/modules/entityreference/entityreference.module).
Fatal error: Unsupported operand types in /*/modules/entityreference/entityreference.module on line 508

I guesss we need another rc now and more tests

Files: 
CommentFileSizeAuthor
#11 1793328-entityreference-fatal-error-no-behaviors.patch7.23 KBDamien Tournoud
PASSED: [[SimpleTest]]: [MySQL] 107 pass(es).
[ View ]
#1 1793328-fatal_error_in_edit_field_form-1.patch1.64 KBParisLiakos
PASSED: [[SimpleTest]]: [MySQL] 66 pass(es).
[ View ]

Comments

ParisLiakos’s picture

Status:Active» Needs review
StatusFileSize
new1.64 KB
PASSED: [[SimpleTest]]: [MySQL] 66 pass(es).
[ View ]

Patch attached

Pomliane’s picture

Patch #1 seems to work as expected. Thank you @rootatwc.

budalokko’s picture

I was affected by this error with RC4 and patch in #1 solved the problem for me.

cosmosian’s picture

Come upon an error pointing to the same line as the TS when adding an Entity reference field of a Node to a new content type.
After applying the patch by rootatwc the white page error disappeared but the following appeared on top of the page in error red:
Notice: Undefined index: behaviors in _entityreference_field_instance_settings_form() (line 508 of /home/********/public_html/sites/all/modules/entityreference/entityreference.module).

As it is a new site being set up, both the referred content type and the new content type have no nodes made from it yet. That might be connected to it?

ParisLiakos’s picture

@cosmosian: i think this error was in cache when you got the white pages..Do you still have this if you try again?

misthero’s picture

thanks for the patch, it works for me, i was getting:
Unsupported operand types in /all/modules/entityreference/entityreference.module on line 514

cosmosian’s picture

Flushing all caches helped indeed. Should have done that after applying the patch ofcourse *shakes head*

Shawn DeArmond’s picture

Status:Needs review» Reviewed & tested by the community

Confirmed. Patch #1 works.

andypost’s picture

+1 a really annoing!!!! field settings throws 500 error

PHP Fatal error:  Unsupported operand types in /home/u6614/domains/uXXX/sites/all/modules/entityreference/entityreference.module on line 514, referer: http://uXXX/admin/structure/types/manage/action/fields
rocketeerbkw’s picture

#1 Fixed it for me as well.

Damien Tournoud’s picture

Status:Reviewed & tested by the community» Fixed
StatusFileSize
new7.23 KB
PASSED: [[SimpleTest]]: [MySQL] 107 pass(es).
[ View ]

Oups. Merged the attached patch in 7.x-1.x, including a smoke test of the admin UI.

Crell’s picture

Status:Fixed» Reviewed & tested by the community

Confirmed that this bug exists, and this patch fixes it.

amateescu’s picture

Status:Reviewed & tested by the community» Fixed

Well.. it's already committed :/

dadderley’s picture

Holy crap that was fast!
Just noticed the problem when I went to edit the field in my content type.

I got this in my WOD
Fatal error: Unsupported operand types in entityreference.module on line 514

Then when I backed away I got this notice:
Notice: Undefined index: behaviors in _entityreference_field_instance_settings_form() (line 508 of /home/me/public_html/foo/sites/all/modules/entityreference/entityreference.module).

I came across this thread and installed the 7.x-1.0-rc5 release.
Problem seems to be gone.

Thank you.

Status:Fixed» Closed (fixed)

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