After updating to the latest version 6.x-3.x-dev (26.11.2010) when I tried to add a new node from Node reference from URL widget, I got an error:
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/query.inc' (include_path='.:/usr/share/pear') in ...sites/all/modules/views/views.module on line 644.
The node is saved vith the title only, all other cck fields are not saved - they are empty.

Any help is much appreciated.

Comments

merlinofchaos’s picture

3.x no longer includes that file.

Can you do a grep in your modules directory:

grep "views_include('query')"

Whichever module you have that's including that file manually is not compatible with 3.x

My guess is that it's the node reference from URL widget.

odisei’s picture

Thank you Merlin for your quick response. Please note that 3.x worked untill today's update with node reference from url widget.

merlinofchaos’s picture

Maybe so, but the file being requested in that code has not bee in 3.x for at least a year, at this point.

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)
odisei’s picture

Sorry, I'm not too familiar with the grep command. I navigated through Secure Shell Terminal to sites/all/modules and tried:

grep "views_include('query')"

but got nothing. Is my syntax right? Sorry for my lack of command line knowledge:)

merlinofchaos’s picture

Ahh I think you need to use grep -R in order to recurse down into subdirectories.

dawehner’s picture


grep  "views_include('query')" . -R 
odisei’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks a lot for your help Merlin, and dereine! I found the problem - it was the boost.module - on line 502:
views_include('query'); that was causing the problem!

Also I found this call in table wizard module - I uninstalled it.

On the boost settings page (/admin/settings/performance/boost) I disabled these 2 options:
- Clear all cached views pages associated with a node on update/delete
- Clear all cached views pages associated with a node on insert
and everything is back to normal.

Thank you again.
cheers!

merlinofchaos’s picture

You should search the boost.module issue queue for this. If there isn't already an issue about Views 3.x compatibility, one should be added.

I'm glad you figured this out.

Status: Fixed » Closed (fixed)

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

SchwebDesign’s picture

i had this problem as well and this fixed the problem for me as well! Thanks!

gotcha41’s picture

had the same problem, it was boost module, indeed

thanks!

dadderley’s picture

@odisei
Thank you very much.
I just upgraded views on the one site to 3.0 and I just encountered the same problem.
Your solution worked right away.

Fannon’s picture

mass contact module seems to be incompatible too:

http://drupal.org/node/1462616

odisei’s picture

@dougzilla
Glad to hear that.
Cheers!