Whenever I try to create any of my content pages I get following error. I upgraded to latest Jan 25, 2010 and still get this. This is production site should I downgrade to version 2 I have been running 3 all along and this is first sign of trouble.

require_once(./sites/all/modules/views/includes/query.inc) [function.require-once]: failed to open stream: No such file or directory in /home/cookin/public_html/sites/all/modules/views/views.module on line 523.

CommentFileSizeAuthor
#5 boost-696216.patch890 bytesmikeytown2

Comments

merlinofchaos’s picture

Status: Active » Fixed

6.x-3.x does not contain this file. If you are using Views 3 but are seeing something trying to include this file, you have a broken installation. You should remove your views directory and reinstall from the tar or cvs, depending upon how you installed.

pingers’s picture

Do you have boost module installed?

If so, this is a problem, because it directly invokes views_include('query'); in hook_nodeapi().

I just commented the line out and didn't get any errors after that.

Road Runner’s picture

Merlin and pinger thank you very much.

Yep Boost is installed. I tried to cleanup everything per Merlin uninstalled, reinstalled even did fresh install of Drupal 6.15 - I get superstitious ;-) No joy. Funny I thought about Boost since I installed it I've been alert to some funny things. Nothing I can put my finger on. I kept getting same error.

To solve m problem I dropped back to 6x-2x-dev then redid all my custom views.

My thanks again.

giorgio79’s picture

Project: Views (for Drupal 7) » Boost
Version: 6.x-3.x-dev » 6.x-1.x-dev
Status: Fixed » Active

This probably should sit with Boost then

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new890 bytes

Thanks for the heads up!

Doing views_include was a temp fix, since PHP has trouble with loading files in a shutdown function. Doing a chdir() back to the index.php file is the correct way chdir(dirname($_SERVER['SCRIPT_FILENAME']));. Here's a patch that removes these calls, since I now do a chdir().

mikeytown2’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

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