I use views 3.x together with taxonomy menu. After I updated to the latest version of 3.x-dev (26-Jun-2009) I get this error when I want to access the view:
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/query.inc' (include_path='.;C:\php5\pear') in C:\wamp\www\drupal\sites\all\modules\views\views.module on line 512
I have cleared the views cache and rebuild the taxonomy menu. What can I do to solve this?
I have attached 2 screen captures of my view settings.
| Comment | File | Size | Author |
|---|---|---|---|
| views_capture2.JPG | 57.24 KB | tomsm | |
| views_capture1.JPG | 64.29 KB | tomsm |
Comments
Comment #1
Anonymous (not verified) commentedI get the same error, but I don't use taxonomy menu.
Comment #2
orgnsm commentedsame
Comment #3
kickglass commentedIts seems that there isn't a query.inc in the includes dir.
where is it?
Comment #4
aacraig commentedI just installed views through drush and have the same problem. I can confirm that there is no query.inc in views/includes/
Comment #5
aacraig commentedIt looks like someone neglected to add query.inc on the latest commit.
In browsing the cvs repository, I see the file exists, but for some reason it isn't included in the latest release. As a test, I've downloaded the file into modules/views/includes and now I don't get the include error anymore.
Is this file ready for release?
Comment #6
merlinofchaos commentedNo, query.inc is gone in 3.x -- any references to it are erroneous.
Comment #7
tomsm commentedWith Views version 6.x-3.x-dev (2009-Jun-13) I do not have the error. Query.inc is also not included in this release, right?
But when I update to version 6.x-3.x-dev (2009-Jun-26) the error appears.
Why?
Comment #8
aacraig commentedThen there is an erroneous reference to in in views.module on line 512 which is causing the latest version to crash Drupal.
I'm using 6.x-3.x-dev.
Here's output from the error log:
PHP Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/query.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /home/aaron/Documents/artist-sites/sites/all/modules/views/views.module on line 512, referer: http://artist-sites.beeblebrox/admin/reports/updates
Comment #9
tomsm commentedI updated to 6.x-3.x-dev (2009-Jul-01). Same error:
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/query.inc' (include_path='.;C:\php5\pear') in C:\wamp\www\drupal\sites\all\modules\views\views.module on line 512
Comment #10
merlinofchaos commentedLooks like I accidentally reverted some code when rolling some 2.x changes forward. I think this is fixed in CVS now.
Comment #11
tomsm commentedIndeed, is fixed. Thank you!
Comment #13
Georgii commentedHi! When trying to create a new story material I get the following error message
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/query.inc' (include_path='.:') in /home/virtwww/w_igeorg-ru_ee16c339/http/sites/all/modules/views/views.module on line 545
Even using the latest dev version.
This happened right after boost module installation and I don't really know where the rool cause is (inside boost or inside views)
Some more info.
- An error message occurs only when creating a new material.
- To create a new material I have to disable boost module, create material, enable bost
- Editing of a material goes without errors.
Any Ideas?
Comment #14
Georgii commentedBoost dev version fixed this