Warning: include(/drupal/sites/all/modules/fb/fb_settings.inc): failed to open stream: No such file or directory in /drupal/sites/default/settings.php on line 301

Warning: include(): Failed opening '/drupal/sites/all/modules/fb/fb_settings.inc' for inclusion (include_path='.:') in /drupal/sites/default/settings.php on line 301

I read the entire readme.

This happened after I upgraded from the previous version to the newest version (5/29 i believe).

my include path includes sites/all/modules

Thanks,
Chris

Comments

Dave Cohen’s picture

Category: bug » support

Make sure there is actually a file where you expect it, /drupal/sites/all/modules/fb/fb_settings.inc. Then make sure it is readable by your server software. Then tweak your include line so that it works, which will depend on how your PHP is set up. Try include('sites/all/modules/fb/fb_settings.inc');

my include path includes sites/all/modules

Not according to your error message above, (include_path='.:')

socialnicheguru’s picture

Title: errors for require fb/fb_settings.inc » errors for require fb/fb_settings.inc when Drush module installed
Issue tags: +drush

I get this error when I try to use the DRUSH module.

Drush module which works for every other module..

solution is that I had to put in the absolute path to the fb_settings.inc file in my default/settings.php file

My include_path is defined except when Drush and fb are enabled.

Chris

Michsk’s picture

I'm having the same issue when i use drupal_set_html_head() in my custom module.

drupal_set_html_head('<link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php?1002">');
drupal_set_html_head('<script type="text/javascript" src="/cometchat/cometchatjs.php?1002" charset="utf-8"></script>');

Then in my cometchatjs.php i see

<br />
<b>Warning</b>:  include(sites/all/modules/fb/fb_url_rewrite.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/vhosts/***.nl/httpdocs/sites/default/settings.php</b> on line <b>250</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'sites/all/modules/fb/fb_url_rewrite.inc' for inclusion (include_path='.:') in <b>/var/www/vhosts/***.nl/httpdocs/sites/default/settings.php</b> on line <b>250</b><br />

<br />
<b>Warning</b>:  include(sites/all/modules/fb/fb_settings.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/vhosts/***.nl/httpdocs/sites/default/settings.php</b> on line <b>251</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'sites/all/modules/fb/fb_settings.inc' for inclusion (include_path='.:') in <b>/var/www/vhosts/***.nl/httpdocs/sites/default/settings.php</b> on line <b>251</b><br />

<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/**.nl/httpdocs/sites/default/settings.php:250) in <b>/var/www/vhosts/***.nl/httpdocs/cometchat/cometchatjs.php</b> on line <b>82</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/**.nl/httpdocs/sites/default/settings.php:250) in <b>/var/www/vhosts/***.nl/httpdocs/cometchat/cometchatjs.php</b> on line <b>83</b><br />
/*!

And this breaks my chat script because of above.

Michsk’s picture

I solved my problem by not including settings.php in the cometchat script. The cometchat script included settings.php to get db settings and that including seems to be the problem. Maybe drush also calles for settings.php?

socialnicheguru’s picture

Status: Active » Closed (fixed)

fixed in newest version