I notice this error on many different modules when I searched through Drupal.org. But, unfortunately, I did not come across a patch to fix the Entity module for this error. The best I found was a patch that would eventually be backported to Drupal 7 from 8 core. I can apply a patch but am not familiar enough with Drupal to go into the code and fix this myself. But, if someone can tell me how to fix this then I would be very grateful! And, could someone explain to me exactly why I see this particular error so much? I didn't fully understand the reason and would like to know how I can fix this if I come across it again in another module. (This isn't the only module I have received this error on but was able to find patches for the rest of them.)
Comments
Comment #1
hazit commentedI have the same problem.
Comment #2
firesidelibrarian commentedI am having a similar problem, though the message I get does not have "Strict" at the beginning:
Warning: Creating default object from empty value in _entity_defaults_rebuild() (line 772...
Comment #3
firesidelibrarian commentedI am experiencing a similar problem, but with the message:
Warning: Creating default object from empty value in _entity_defaults_rebuild() (line 825...Comment #4
iggi commentedI think the line 825 issue is separate. I've filed a new bug for it at: https://drupal.org/node/2155773
Comment #5
geek-merlinYes, this is a dup of #2155773: Warning: creating default object - line 825 entity.module.