I have several entities which have multiple eva views attached to them. When I clear all caches (drush cc all) only one of them is displayed, and other attachments completely disappear and are not rendered, neither on the rendered entity page nor the field settings form. If I then clear just the views cache (drush cc views) they reappear.

From a bit of debugging it looks like eva_get_views() sometimes rebuilds the cache based on an incomplete list of views. Attached patch fixes that for me.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Fr0s7’s picture

There is a similar (possibly the same) bug related to caching.

After adding a new View display of type Entity Content and configuring it properly, the view does not appear in the content type as expected. When reviewing the Manage Display tab of the content type in question, the view still does not show up. However, if your click 'Save', the view now appears in the list and can be re-ordered properly. It's important to note that this needs to be done for every view mode (Default, Full content, Teaser, etc.) before the view will appear correctly.

rdickert’s picture

Priority: Normal » Major

Thanks bforchhammer!

This patch saved my bacon -- part of my site was breaking when I updated Views. For me this patch solved the problem in:

#1290350: EVA stopped displaying after upgrade to 7.x 1.1

Bumping priority to major in hopes that the maintainer will take a look at this and update the module - this is actually a critical issue to anyone using EVA who is updating from certain dev versions of Views 7.x-3.x that preceded the stable release.

mshepherd’s picture

Priority: Major » Normal
Macronomicus’s picture

Title: Cache refresh not working properly » Cache refresh not working properly & entity fields display no content.
Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

My issue was the eva fields would not display any content, where they did before upgrading to recent views.

This module does not work without the given patch in the OP.... the patch works great!

Cheers!

vadym.kononenko’s picture

Only after I've applied this patch I got my eva's views display as field on the "display fields" page.

mkadin’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
597 bytes

Makes sense to me. I can't seem to reproduce this error, but I believe this patch does the same thing - only lighter. There's no need to actually load all of the views and such...if you follow the rabit hole into views_load_all_views, eventually you get to ctools_export_load_object_reset(), which I think is what we need.

Can someone who is experiencing this problem test this patch to see if it clears it up?

bforchhammer’s picture

Hm, not sure what's changed since February but I'm actually having a hard time reproducing this problem now myself...

bforchhammer’s picture

Scrap that last comment. The problem still exists, and yes the patch in #6 also solves seems to solve the issue for me. Thank you!

bforchhammer’s picture

Status: Needs review » Reviewed & tested by the community
mkadin’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Committed to the dev branch. Thanks folks. New release coming soon, just got git access to this module.