I've updatted to Views 3, because Views SOLR required it and I am working in multisite environment without problems. Only one of the sites make problems when submit node. The pictures in CCK fields are not uploaded and DLOG throws this error:
Warning: require_once(./sites/all/modules/views/includes/query.inc): failed to open stream: No such file or directory in views_include() (line 554 of /public_html/sites/all/modules/views/views.module).

I don't have such file query.inc in includes folder of views. When I submit the node, the CCK images are "undefined" and imagecache don't generate them. If I edit the node I can see, that the attached files are missing. When I upload them again, everything works fine. But every time I need to edit the node to make it look correct.
Please, tell me what I can do to fix this error? Thanks!

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

grep your modules for the line "views_include('query')" and see where it's coming from. The most likely possibilities are:

1) An incomplete upgrade has some old code merged with new code
2) One of the modules you have using Views is only compatible with Views 2.x and has not upgraded to be compatible with Views 3.x

Terko’s picture

I usually overwrite with WinSCP the folder, but maybe this is not good idea. I will delete and upload again the views folder.

Terko’s picture

I found this code in Boost module:


 switch ($op) {
    case 'insert':
      if (BOOST_FLUSH_VIEWS_INSERT && module_exists('views')) {
        $GLOBALS['_boost_nid'] = $node->nid;
        // Can not reliability call require_once inside a shutdown function; see http://drupal.org/node/652508
        views_include('view');
        views_include('query');
        register_shutdown_function('_boost_view_insert');
      }

Do you think that it's safe to comment this function?

dawehner’s picture

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

So

Terko’s picture

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

Resolved the problem with unchecking the option in Boost "Clear all cached views pages associated with a node on insert"
Thanks merlin!

merlinofchaos’s picture

Title: Warning: require_once(./sites/all/modules/views/includes/query.inc): failed to open stream: No such file or directory » Boost not compatible with Views 3.x
Project: Views (for Drupal 7) » Boost
Version: 6.x-3.x-dev » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active

Let's put this back to Boost since it could probably fixed with only a couple lines of code there.

mikeytown2’s picture

Status: Active » Reviewed & tested by the community

I haven't used views_include() in the boost dev for some time. Hopefully in about a week or so I'll release Boost 1.19; got it running on A LOT of domains and there might be a couple small bugs to work out before I christen the next version. I'll mark this RTBC till I release 1.19

TimelessDomain’s picture

chuckbar77’s picture

subscribing

brycesenz’s picture

subscribing.

mrfelton’s picture

subscribe

bgm’s picture

Status: Reviewed & tested by the community » Needs review

Can someone confirm if it is fixed in 6.x-1.x dev snapshots?

bgm’s picture

Status: Needs review » Fixed

No feedback, closing the issue.

Status: Fixed » Closed (fixed)

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

SchwebDesign’s picture

does anyone know if this was "actually fixed" or do we need to continue

...unchecking the option in Boost "Clear all cached views pages associated with a node on insert" ?