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.
In the situation that multiple modules are being enabled at the same time, views fetch data is reset but the newly included files are not.
Encountered while trying to test an install profile with multiple modules with views.incs to add.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1979926-views-reset_fetch_data-2.patch | 643 bytes | hefox |
#1 | 1979926-views-reset_fetch_data-1.patch | 1.17 KB | hefox |
Comments
Comment #1
hefox CreditAttribution: hefox commentedComment #2
hefox CreditAttribution: hefox commentednope, that didn't work because various things clear the views data cache outside of calling with reset = true
new approach is to see if the helper function is called more than once in a page load, and if so (indicating cache was cleared somehow) go and refresh handlers also
Comment #3
btopro CreditAttribution: btopro at Pennsylvania State University commentedAlso experiencing this; testing patch currently but have travis stack traces to show this is possible. My problem appears to be enabling Views and Editableviews during an installation routine -- https://travis-ci.org/drupalprojects/ecd/builds/64357323
Comment #4
btopro CreditAttribution: btopro at Pennsylvania State University commentedBuild passed now after applying path projects[views][patch][] = "https://www.drupal.org/files/1979926-views-reset_fetch_data-2.patch"
This is still an issue in 3.11
Comment #5
DamienMcKennaComment #7
dawehnerI see, this fix makes sense, though it would be indeed helpful if we could document what is going on. This is not obvious, to be honest.
Comment #8
btopro CreditAttribution: btopro at Pennsylvania State University commentedI think there's a race condition of sorts. During install profile, it installs 2+ views plugins that include views.inc's. It hits the first one, rebuilds via this function and goes "oh I know about everything". Then, the next one goes to fire / requires an include and it freaks out because its cache already claims to have loaded all the files but didn't.
I'd imagine this isn't JUST an issue for install profile but instead any project that says it has 2 views projects (that both include files) required to enable. This would be common in features or install profiles, anything with multiple dependencies to be loaded that have views includes of some kind.
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI think this is in the current 12/2015 dev version already
Comment #10
dawehnerRight, this wasn't committed ...
Comment #11
DamienMcKennaBump.