I had a hard drive failure and had neglected to save the sites directory, so I rebuilt my system and setup with the last saved database.

Now when I try to access Views at: admin/build/views, I get this error:

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/views/includes/admin.inc' (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/data/includes/menu.inc on line 346

So it appears there's a problem with the PHP installation. Installed PHP5 and PHP5-extensions via FreeBSD ports, same as I always had.

Any idea what this error is about? Any views I have setup also fail with multiple errors:
warning: Invalid argument supplied for foreach() in /usr/local/www/apache22/data/modules/acquia/views/includes/view.inc on line 1693.

Any clues to what's wrong? BTW this is the first time I used Acquia Drupal rather than the plain vanilla install. Is there possibly a problem related to this seeing as AD puts some things in different places?

Tnx, Jeff

Comments

druplicate’s picture

Acquia helped me on this one (great customer service!). I had installed a saved database from a plain vanilla install of Drupal, into an Acquia Drupal version which places many popular modules in a different directory then /sites/all/modules. This is so an update to AD does not affect custom modules. If you put a module in /sites/all/modules it will override the version in /modules/acquia.

The problem is that Views and other modules were now in a different place and Drupal needed to know that. So I simply resubmitted the /admin/build/modules page.

Now I have this persistent error that cropped up after I reset permissions on the sites/all/modules folder to 750, and changed owner to Jeff:www.

All Drupal folders and files are owned by Jeff:www and have permissions set to 750, except for the sites/default/files folder which is 660.

This error shows up at /admin/build/modules:

warning: opendir(modules/content_access) [function.opendir]: failed to open dir: Permission denied in /usr/local/www/apache22/data/includes/file.inc on line 895.

I turned off every single module too.

Then I enabled only the Views and Views UI modules and dozens of this error occur:

warning: Invalid argument supplied for foreach() in /usr/local/www/apache22/data/modules/acquia/views/includes/view.inc on line 1693.

UPDATE:

Updated to the latest Acquia Drupal release for D6.15 which included an update to Views. I had been using the newer version of Views on the old site.

Problem fixed!