Updated to 2.1 of ColorBox (along with the JS library) and the latest stable release of Entity API. Stupidly did this without testing ;)

Notice: Undefined index: entity_type in theme_colorbox_image_formatter() (line 21 of /var/www/html/drupal7/drupal/sites/all/modules/colorbox/colorbox.theme.inc).
Notice: Undefined index: entity in theme_colorbox_image_formatter() (line 22 of /var/www/html/drupal7/drupal/sites/all/modules/colorbox/colorbox.theme.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7627 of /var/www/html/drupal7/drupal/includes/common.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7628 of /var/www/html/drupal7/drupal/includes/common.inc).

This error gets repeated for each item in my View.

Investigating further...

Comments

frjo’s picture

Assigned:Unassigned» frjo

Can you post a link to the site and/or give me access to it or a demo that has the same problem?

jastraat’s picture

I don't think this is a problem with Entity + ColorBox because I'm getting this error on a site that does not have entity installed. I just upgraded to the most recent version of Drupal (7.19)

asotog88’s picture

Im getting the same error but im using the Project Issues Tracker module, when i try to create an issue i get

Notice: Undefined index: entity keys in entity_extract_ids() (line 7627 of /Users/alejandrosoto/Downloads/drupal/drupal-7.18/includes/common.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7628 of /Users/alejandrosoto/Downloads/drupal/drupal-7.18/includes/common.inc).

pjmcghee’s picture

I am receiving the error about entity along with the error listed before it. I just installed Drupal Chat.

Notice: Undefined index: entity_type in views_bulk_operations_modify_action() (line 31 of /var/www/html/sites/all/modules/views_bulk_operations/actions/modify.action.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7627 of /var/www/html/includes/common.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7628 of /var/www/html/includes/common.inc).

Ericmaster’s picture

I was getting these too after upgrading colorbox, they went away after installed entity module.

pc-wurm’s picture

Title:Bug with Entity (Undefined Index: entotuy keys in entity_extract_ids / entity_type).» Bug with Entity (Undefined Index: entity keys in entity_extract_ids / entity_type).
Issue summary:View changes
Uv516’s picture

I am getting this error set:

Notice: Undefined index: entity_type i views_bulk_operations_modify_action() (line 31 of /home/mydomain/public_html/sites/all/modules/views_bulk_operations/actions/modify.action.inc).
Notice: Undefined index: entity keys i entity_extract_ids() (linje 7723 af /home/mydomain/public_html/includes/common.inc).
Notice: Undefined index: entity keys i entity_extract_ids() (linje 7724 af /home/mydomain/public_html/includes/common.inc).

I think that it isn't just something about colorbox. I don't use colorbox.