Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have some error messages like this:
Notice: Undefined index: required em entity_metadata_field_default_property_callback() (linha 64 de /home/yukare/public_html/sites/all/modules/entity/modules/field.info.inc).
In the page /taxonomy/term/20/all/feed
Comment | File | Size | Author |
---|---|---|---|
#18 | entity-1243494-18.patch | 647 bytes | Boobaa |
#16 | entity-1243494-16.patch | 748 bytes | Jody Lynn |
Comments
Comment #1
guylou CreditAttribution: guylou commentedI have the exact same issue. Would love to know how to fix that.
Comment #2
iRadev CreditAttribution: iRadev commentedSame Thing Here. Upgraded from D6. I think that I got the error after I made one of my fields "required".
Comment #3
Zarevac CreditAttribution: Zarevac commentedDiddo, just upgraded from D6.
Comment #4
causalloop CreditAttribution: causalloop commentedditto, no upgrade though, just straight D7 install
Comment #5
fagoI cannot reproduce that. On which pages exactly do you get it? How can it be reproduced? Is the issue triggered by certain contrib module?
Comment #6
geerlingguy CreditAttribution: geerlingguy commentedI'm getting the error too, after updating Token and Rules to the latest stable releases. The error pops up after I clear all caches.
Comment #7
Zarevac CreditAttribution: Zarevac commentedI have the same error after upgrading to D7. I am backtracing and checking the logs to see if I can localize the problem.
Comment #8
causalloop CreditAttribution: causalloop commentedHonestly, I'm not entirely certain what the last thing I did was that caused it... Mine shows up on the front page after I log in. What info can I get for you that would help?
Comment #9
stefanwray CreditAttribution: stefanwray commentedI tried to remove Content Types
It seems like they were being removed, but they weren't.
And I found this error message in the Drupal Log
Notice: Undefined index: required in entity_metadata_field_default_property_callback() (line 64 of /usr/local/share/drupal/v7/modules/entity/modules/field.info.inc).
Comment #10
Macronomicus CreditAttribution: Macronomicus commentedSame issue here .. after upgrade from d6 to d7, still digging around...
Comment #11
Liliplanet CreditAttribution: Liliplanet commentedsubscribe thx! same error when user resets password.
eg: mysite.com/user/xx/edit?pass-reset-token=xxxxxxxxx
Notice: Undefined index: required in entity_metadata_field_default_property_callback() (line 64 of /home/public_html/sites/all/modules/entity/modules/field.info.inc).
also error at the same time at mysite.com/user (for the user that just tried to login)
Notice: Undefined property: stdClass::$cache in DrupalDatabaseCache->prepareItem() (line 399 of /home/public_html/includes/cache.inc)
Comment #12
causalloop CreditAttribution: causalloop commentedjust ignore this line... lol
Comment #13
somatics CreditAttribution: somatics commentedI'm getting the same error:
Notice: Undefined index: required in entity_metadata_field_default_property_callback() (line 64 of /drupalfolderpath/sites/all/modules/entity/modules/field.info.inc).
Comment #14
worldwidecraig CreditAttribution: worldwidecraig commented•Notice: Undefined index: required in entity_metadata_field_default_property_callback() (line 64 of /home/content/41/6771941/html/sites/all/modules/entity/modules/field.info.inc).
I get the same error too, after I upgraded to drupal 7.8, I get it when I hit the "save" button on the modules page, I was disabling Roles, OH WAIT I JUST DISABLED RULES AND NOW I DON'T GET IT, anyone else have rules and is getting this problem
Comment #15
brianvaughn CreditAttribution: brianvaughn commentedYou can work around this issue for the time being by modifying the file:
../modules/entity/modules/field.info.inc
And changing line 64 from...
'required' => $instance['required'],
To...
'required' => ( !empty($instance['required']) ? $instance['required'] : FALSE ),
Comment #16
Jody LynnHere's a patch for the solution in #15
Comment #17
klausiusing !empty($instance['required']) should be enough, see the 'translatable' property for example.
Comment #18
BoobaaUpdated patch attached.
Comment #19
BoobaaComment #20
klausias said in #17, this can be shorter.
Comment #21
tresero CreditAttribution: tresero commented#18: entity-1243494-18.patch queued for re-testing.
Comment #22
kim_charest CreditAttribution: kim_charest commentedHi, I have a similar problem. I tried making the changes, but it won't work. I still get the message
I'm a newbe and don't know much about coding... Can someone please help me!? :)
Thank you so much for your help!!
Comment #23
fagoI don't see why this should be an issue, but if it helps people - let's add this simple check. I've added an !empty() and committed it.