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

CommentFileSizeAuthor
#18 entity-1243494-18.patch647 bytesBoobaa
#16 entity-1243494-16.patch748 bytesJody Lynn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

guylou’s picture

I have the exact same issue. Would love to know how to fix that.

iRadev’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta10
Status: Postponed (maintainer needs more info) » Active

Same Thing Here. Upgraded from D6. I think that I got the error after I made one of my fields "required".

Zarevac’s picture

Diddo, just upgraded from D6.

causalloop’s picture

ditto, no upgrade though, just straight D7 install

fago’s picture

Version: 7.x-1.0-beta10 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

I cannot reproduce that. On which pages exactly do you get it? How can it be reproduced? Is the issue triggered by certain contrib module?

geerlingguy’s picture

I'm getting the error too, after updating Token and Rules to the latest stable releases. The error pops up after I clear all caches.

Zarevac’s picture

Version: 7.x-1.0-beta10 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

I have the same error after upgrading to D7. I am backtracing and checking the logs to see if I can localize the problem.

causalloop’s picture

Honestly, 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?

stefanwray’s picture

I 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).

Macronomicus’s picture

Same issue here .. after upgrade from d6 to d7, still digging around...

Liliplanet’s picture

subscribe 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)

causalloop’s picture

just ignore this line... lol

somatics’s picture

I'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).

worldwidecraig’s picture

•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

brianvaughn’s picture

You 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 ),

Jody Lynn’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
748 bytes

Here's a patch for the solution in #15

klausi’s picture

Status: Needs review » Needs work
+++ b/sites/all/modules/entity/modules/field.info.inc
@@ -61,7 +61,7 @@ function entity_metadata_field_default_property_callback(&$info, $entity_type, $
+      'required' => !empty($instance['required']) ? $instance['required'] : FALSE,

using !empty($instance['required']) should be enough, see the 'translatable' property for example.

Boobaa’s picture

FileSize
647 bytes

Updated patch attached.

Boobaa’s picture

Status: Needs work » Needs review
klausi’s picture

Status: Needs review » Needs work

as said in #17, this can be shorter.

tresero’s picture

Status: Needs work » Needs review

#18: entity-1243494-18.patch queued for re-testing.

kim_charest’s picture

Hi, I have a similar problem. I tried making the changes, but it won't work. I still get the message

Fatal error: Call to undefined function link_field_property_info_callback() in /home/explo635/public_html/sites/all/modules/entity/modules/field.info.inc on line 30

I'm a newbe and don't know much about coding... Can someone please help me!? :)

Thank you so much for your help!!

fago’s picture

Status: Needs review » Fixed

I 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.

Status: Fixed » Closed (fixed)

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