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.
on cmd i get this warning:
Creating default object from empty value entity.module:876
In browser i always get this warning:
Warning: Creating default object from empty value in _entity_defaults_rebuild() (line 876 of /mysite/profiles/openoutreach/modules/contrib/entity/entity.module) using the latest OO version.
872 // Invoke the hook and collect default entities.
873 $entities = array();
874 foreach (module_implements($hook) as $module) {
875 foreach ((array) module_invoke($module, $hook) as $name => $entity) {
876 $entity->{$keys['name']} = $name;
877 $entity->{$keys['module']} = $module;
878 $entities[$name] = $entity;
879 }
880 }
881 drupal_alter($hook, $entities);
Are there any ideas how i can fix this?
Comments
Comment #1
firesidelibrarian CreditAttribution: firesidelibrarian commentedI have been experiencing the same bug for some time now. Any help would be greatly appreciated. Thanks!
Comment #2
jrmclt CreditAttribution: jrmclt commentedSame problem in my configuration but only on cmd, i using the latest OO version too.
Comment #3
nedjoDuplicate of #2155773: Warning: creating default object - line 825 entity.module.