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.

CommentFileSizeAuthor
views_capture2.JPG57.24 KBtomsm
views_capture1.JPG64.29 KBtomsm

Comments

Anonymous’s picture

I get the same error, but I don't use taxonomy menu.

orgnsm’s picture

same

kickglass’s picture

Its seems that there isn't a query.inc in the includes dir.

where is it?

aacraig’s picture

I just installed views through drush and have the same problem. I can confirm that there is no query.inc in views/includes/

aacraig’s picture

It 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?

merlinofchaos’s picture

No, query.inc is gone in 3.x -- any references to it are erroneous.

tomsm’s picture

With 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?

aacraig’s picture

Then 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

tomsm’s picture

I 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

merlinofchaos’s picture

Status: Active » Fixed

Looks like I accidentally reverted some code when rolling some 2.x changes forward. I think this is fixed in CVS now.

tomsm’s picture

Indeed, is fixed. Thank you!

Status: Fixed » Closed (fixed)

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

Georgii’s picture

Status: Closed (fixed) » Active

Hi! 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?

Georgii’s picture

Status: Active » Closed (fixed)

Boost dev version fixed this