I had just updated to Drupal 6.20 and then updated to the latest Views. The update.php process went well but for some reason Views and Views UI was disabled after the update. Enabling them in the admin/build/modules results in this error message. Views has been running smoothly for I don't know how long before this. The server is running MySQL 5.0.90 and PHP 5.2.12.

warning: Invalid argument supplied for foreach() in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1747.
warning: Invalid argument supplied for foreach() in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1747.
warning: Invalid argument supplied for foreach() in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1747.
warning: Invalid argument supplied for foreach() in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1747.
warning: Invalid argument supplied for foreach() in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1747.
warning: Invalid argument supplied for foreach() in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1747.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY vid, position' at line 1 query: SELECT * FROM sjoskogen_views_display WHERE vid IN () ORDER BY vid, position in /users/home/spot/domains/sjoskogen.se/web/public/sites/all/modules/views/includes/view.inc on line 1369.

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Can you try doing a cache clear? There's a couple of ways to clear cache. The easiest is from the performance menu.

dadderley’s picture

Hi I just updated.
I did not clear the cached data before running the update.
I got this error:

warning: require_once(./sites/all/modules/views/includes/view.inc) [function.require-once]: failed to open stream: No such file or directory in /home/mine/public_html/mysite.com/sites/all/modules/views/views.module on line 540.

This was somewhat unsettling.
Fortunately, I read this post before my updating adventure.

So I went to my backup.
I flushed my cache like you suggested and ran the update.

Success, all is good. Hopefully this information is helpful.

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

warning: require_once(./sites/all/modules/views/includes/view.inc) [function.require-once]: failed to open stream: No such file or directory in /home/mine/public_html/mysite.com/sites/all/modules/views/views.module on line 540.

Okay the webserver couldn't read from view.inc. you might missed it on your update.

NiklasBr’s picture

No, I hadn't cleared any caches besides disabling Boost and running cron right before running update.php. As I said, this happened only once, after re-enabling the modules because they had unexpectedly been disabled during the update process.

Status: Fixed » Closed (fixed)

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