Hi,

After activating Views module, I get a blank page with following text:
-----
Fatal error: %v%v() [function.require]: Failed opening required 'modules/views/modules/views_comment.inc' (include_path='/usr/share/php5:/usr/share/php5/PEAR') in /home/kc/www/modules/views/views.module on line 18
-----

The module worked before my ISP upgraded to PHP5.

I tried copying both 4.7.0 and cvs (07/08/06) to site, and activate views on the Modules page and clicked ok.

I had to deactivate module manually in the database to get the site working.

Comments

aquab121’s picture

I have received this very same error locally on my windows.

warning: require_once(sites/local-visualval/modules/views/modules/views_node.inc) [function.require-once]: failed to open stream: No such file or directory in D:\wamp\home\visualval\httpdocs\sites\local-visualval\modules\views\views.module on line 18.

I could have something to do with my wamp setup. I’m just a designer testing so I wouldn’t be surprised if it was my local setup causing this error.

mo6’s picture

asimmonds’s picture

Try adding current directory into PHP include's search path in php.ini:
eg include_path='.:/usr/share/php5:/usr/share/php5/PEAR'

mo6’s picture

This will probably work, but I'd rather see a solution that works with a default installation of PHP to avoid people having to ask their ISP to change the global php.ini.

merlinofchaos’s picture

Status: Active » Fixed

I checked in a fix that I believe will take care of this problem. Re-open this issue if it turns out I did not. (It's in both CVS and 4.7)

aquab121’s picture

Yes! Thanks, adding "include_path='.:/" to my php.ini file path fixed the issue!

I found the same solution in a similar post as well http://drupal.org/node/47456

- Thanks again :)

borstahusen’s picture

Many thanks, Earl! You saved my day.

Anonymous’s picture

Status: Fixed » Closed (fixed)