I have got this error:
Notice: Undefined index: entity type in entity_plugin_row_entity_view->init() (line 21 of /hsphere/local/home/........./....../modules/entity/views/plugins/entity_plugin_row_entity_view.inc).

Comments

fago’s picture

Status: Active » Fixed

update your views installation and/or clear caches.

yurg’s picture

Sorry for re-opening this, but guess it's relevant. Faced with almost the same error after updating to Drupal 7.9 and Entity API
7.x-1.0-rc1:

 Notice: Undefined index: entity type in entity_views_plugin_row_entity_view->init() (line 20 of /sites/all/modules/entity/views/plugins/entity_views_plugin_row_entity_view.inc).

According to fago's suggestion: do I have to change my Views from 7.x-3.0-rc1 (2011-Jun-17) to 7.x-3.x-dev (2011-Nov-10) ? Or there is something else here to fix?

Thank you for reply!

yurg’s picture

Status: Fixed » Active
kaizerking’s picture

if you are using , Entity API and Ctools,Use Dev versions only,
D 7.x require a clear cache operation more than once,that will solve most of the notices

havabeer’s picture

I went from 7.x-1.0-beta10 to 7.x-1.0-rc1 and now I'm getting a similar error when trying to view any user profile (I cleared cache three times, but it didn't help):

Fatal error: Call to undefined method views_plugin_query_default::get_result_entities() in C:\...\sites\all\modules\contrib\entity\views\plugins\entity_views_plugin_row_entity_view.inc on line 72

The user profile includes a simple Profile2 view: Show- Profile, then set Format to "Rendered entity" with a UserID contextual filter. The rendered entity is a view mode generated with display suite.

kaizerking’s picture

if you have not changed to dev versions please follow fago's suggestion
Date, ctools, Entity API all theses three modules use dev versions ONLY

rlmumford’s picture

Priority: Normal » Critical

I have the issue in #5 with the dev versions of all the modules mentioned.

Have a simple view of 'model' entities with a node_id field, displaying fields, with a node_id contextual filter.

fago’s picture

Priority: Critical » Normal
Status: Active » Fixed

if you have not changed to dev versions please follow fago's suggestion
Date, ctools, Entity API all theses three modules use dev versions ONLY

I never said or meant only dev version are supported. If it does not work with the latest Views release it would qualify as bug. Fortunately, just Views rc3 came out so I don't think it's still worth it to add some conditional checks for older views versions.

Thus, please upgrade to Views rc3 or later and re-open if problems persist.

kaizerking’s picture

I did not mean that it is not supported, i meant that you should try dev and then come back
Yes, I do agree,If it is a bug then it is bug, let it be in any version.
At least we will know the cause

Status: Fixed » Closed (fixed)

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

frank ralf’s picture

I'm not sure whether to re-open this issue but I get the following notice with the current dev release of Views (7.x-3.5+37-dev) on Drupal 7.18 (admittedly with an broken imported view from another system):

Notice: Undefined index: table in entity_views_plugin_row_entity_view->init() 
(line 20 of ...\sites\all\modules\contrib\entity\views\plugins\entity_views_plugin_row_entity_view.inc).