Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#11 | 1793328-entityreference-fatal-error-no-behaviors.patch | 7.23 KB | Damien Tournoud |
#1 | 1793328-fatal_error_in_edit_field_form-1.patch | 1.64 KB | ParisLiakos |
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedPatch attached
Comment #2
Pomliane CreditAttribution: Pomliane commentedPatch #1 seems to work as expected. Thank you @rootatwc.
Comment #3
budalokko CreditAttribution: budalokko commentedI was affected by this error with RC4 and patch in #1 solved the problem for me.
Comment #4
cosmosian CreditAttribution: cosmosian commentedCome 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?
Comment #5
ParisLiakos CreditAttribution: ParisLiakos commented@cosmosian: i think this error was in cache when you got the white pages..Do you still have this if you try again?
Comment #6
misthero CreditAttribution: misthero commentedthanks for the patch, it works for me, i was getting:
Unsupported operand types in /all/modules/entityreference/entityreference.module on line 514
Comment #7
cosmosian CreditAttribution: cosmosian commentedFlushing all caches helped indeed. Should have done that after applying the patch ofcourse *shakes head*
Comment #8
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedConfirmed. Patch #1 works.
Comment #9
andypost+1 a really annoing!!!! field settings throws 500 error
Comment #10
rocketeerbkw CreditAttribution: rocketeerbkw commented#1 Fixed it for me as well.
Comment #11
Damien Tournoud CreditAttribution: Damien Tournoud commentedOups. Merged the attached patch in 7.x-1.x, including a smoke test of the admin UI.
Comment #12
Crell CreditAttribution: Crell commentedConfirmed that this bug exists, and this patch fixes it.
Comment #13
amateescu CreditAttribution: amateescu commentedWell.. it's already committed :/
Comment #14
dadderley CreditAttribution: dadderley commentedHoly 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.