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.
Views megarow stores its includable files in a module subdir /includes/view, this however throws a fopen failed to include error in the theme() function on my hosted site.
Moving the files from /includes/view to the toplevel of the modules installdir seems to solve this issue, but this probably shouldnt happen at all?
Comment | File | Size | Author |
---|---|---|---|
#3 | 2004614-3-fix-theme-path.patch | 624 bytes | bojanz |
Comments
Comment #1
hcderaad CreditAttribution: hcderaad commentedAgain, after an update of views megarow to version 1.1, these error occurred. Perhaps this is an issue in packaging?
Comment #2
Seph CreditAttribution: Seph commentedI am experiencing the same thing. After enabling views megarow, I get the following warning:
Warning: include_once(~/sites/all/modules/views_megarow/views_megarow.views.inc): failed to open stream: No such file or directory in _theme_process_registry() (line 565 of ~/includes/theme.inc).
Warning: include_once(): Failed opening '~/sites/all/modules/views_megarow/views_megarow.views.inc' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php: ~/sites/default/files/private/include') in _theme_process_registry() (line 565 of ~/includes/theme.inc).
The file views_megarow.views.inc is actually in ~/sites/all/modules/views_megarow/includes/views
Comment #3
bojanz CreditAttribution: bojanz commentedTry this.
Comment #4
ArtusamakI can't reproduce the warning and bojanz's patch doesn't break anything.
Could you test the patch Seph / hcderaad and tell us if it's working? I will probably commit it anyway.
Thanks.
Comment #5
hcderaad CreditAttribution: hcderaad commentedI'm sincerely sorry, i have no time to test in production, but this definitely looks like the way to go and with this patch i couldnt reproduce the issue in my testing environment.
Comment #6
Seph CreditAttribution: Seph commentedEverything worked fine after applying the patch.
Comment #7
bojanz CreditAttribution: bojanz commentedSounds like an RTBC to me.
Comment #8
ArtusamakThanks for the patch & review guys it's committed > http://drupalcode.org/project/views_megarow.git/commit/e6caab08fc5d855a7....