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.
Problem/Motivation
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_entity_info_alter() (line 1474 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_entity_info_alter() (line 1474 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_entity_info_alter() (line 1474 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_entity_info_alter() (line 1474 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_entity_info_alter() (line 1474 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_entity_info_alter() (line 1474 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Notice: Undefined index: label in entity_views_table_definition() (line 147 of /home/public_html/modules/entity/views/entity.views.inc).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_type_supports() (line 84 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_type_supports() (line 84 of /home/public_html/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 724 of /home/public_html/modules/entity/entity.module).
Status message
Proposed resolution
We need to define the AdvertisementEntityController class defination in the .module file by extending the EntityController class to fix these ones.
Remaining tasks
Create the patch to fix this.
Comments
Comment #1
naveenvalechaHi Maintainers,
I have assigned it to myself and I will provide its patch soon.
Looking forward to hear from you what do you think.
Comment #2
naveenvalechaComment #3
naveenvalechaComment #4
joyseeker CreditAttribution: joyseeker commentedIs this fixed? I just updated to 7.39 and now I'm getting this message on all of my multi-sites. Thanks.
Comment #5
fizk CreditAttribution: fizk commentedjoyseeker, the 7.x.2-x branch is not yet functional. You can try the 7.x-1.x branch, but that is still in development.