Using Drupal 6.8, when I go to log in I get a white screen of death. I've got error logging on and here are the contents:

[28-Dec-2008 07:09:21] PHP Fatal error:  Call to undefined function  db_is_active() in /home/critic/public_html/includes/bootstrap.inc on line 420
[28-Dec-2008 07:19:43] PHP Warning:  fopen(./sites/default/default.settings.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/critic/public_html/includes/install.inc on line 188
[28-Dec-2008 07:19:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/critic/public_html/includes/install.inc:188) in /home/critic/public_html/includes/install.inc on line 618
[28-Dec-2008 07:19:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/critic/public_html/includes/install.inc:188) in /home/critic/public_html/includes/install.inc on line 619
[28-Dec-2008 07:19:51] PHP Warning:  fopen(./sites/default/default.settings.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/critic/public_html/includes/install.inc on line 188
[28-Dec-2008 07:19:51] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/critic/public_html/includes/install.inc:188) in /home/critic/public_html/includes/install.inc on line 618
[28-Dec-2008 07:19:51] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/critic/public_html/includes/install.inc:188) in /home/critic/public_html/includes/install.inc on line 619
[28-Dec-2008 07:20:02] PHP Warning:  fopen(./sites/default/default.settings.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/critic/public_html/includes/install.inc on line 188
[28-Dec-2008 07:20:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/critic/public_html/includes/install.inc:188) in /home/critic/public_html/includes/install.inc on line 618
[28-Dec-2008 07:20:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/critic/public_html/includes/install.inc:188) in /home/critic/public_html/includes/install.inc on line 619

Can anyone help me out here?

Comments

jhebel’s picture

Did you rename default.settings.php to settings.php? I think drupal needs that file and we're supposed to copy it instead of renaming it. Try duplicating your settings.php and renaming the dup to default.settings.php (essentially put default.settings.php back in its original place).

I hope this helps.

cmscritic’s picture

I tried renaming it but that doesn't appear to have helped.

jhebel’s picture

the second Warning in your log says it is failing to open stream:
./sites/default/default.settings.php

Is your default.settings.php file in that ./sites/default location? It should also have file permissions set to 644

Aside from this, I would say it's good to allow more MEMORY for PHP, which is set in the php.ini file. This is helped me avoid the white screen of death (WSOD) in the past.

More info:
http://drupal.org/node/29268

j11t’s picture

Similar issue

[31-Dec-2008 14:57:01] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:02:59] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:02] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:03] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:03] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:04] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:04] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:04] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420
[31-Dec-2008 15:03:04] PHP Fatal error: Call to undefined function db_is_active() in /home/jovialde/public_html/collegeadmissions/includes/bootstrap.inc on line 420

I tried changing the default.settings.php file and nothing happened

j11t’s picture

I just fixed my issue. The problem was in the update.php. Because of the location of my core file is unconventionally in sites/all/modules I had to change this section of the code lines 576-586

From

 require_once './includes/install.inc';
  require_once './includes/file.inc';
  require_once './modules/system/system.install';

  // Load module basics.
  include_once './includes/module.inc';
  $module_list['system']['filename'] = 'modules/system/system.module';
  $module_list['filter']['filename'] = 'modules/filter/filter.module';
  module_list(TRUE, FALSE, FALSE, $module_list);
  drupal_load('module', 'system');
  drupal_load('module', 'filter');

To

  require_once './includes/install.inc';
  require_once './includes/file.inc';
  require_once './sites/all/modules/system/system.install';

  // Load module basics.
  include_once './includes/module.inc';
  $module_list['system']['filename'] = 'sites/all/modules/system/system.module';
  $module_list['filter']['filename'] = 'sites/all/modules/filter/filter.module';
  module_list(TRUE, FALSE, FALSE, $module_list);
  drupal_load('module', 'system');
  drupal_load('module', 'filter');

I also notices one of you errors had a PERIOD proceeding the default.settings.php This may be part of your problem. Hope this helps somebody.
Avoid a headache and follow convention!

-------------------------------------
www.jovialdesigns.com