During an installation, I accidentally mv'd default.settings.php. On the third stage of the installer, the default.settings.php file was not found. The error was not handled as expected, though.
To reproduce:
- Remove or rename default.settings.php
- Run the installer, completing the first two pages normally.
Expected:
Garland-like installer page giving an error message in a red box.
Got:
A white screen with the following:
Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in /Users/mbutcher/Code/DrupalCore/6/drupal/includes/install.inc on line 188
Warning: Cannot modify header information - headers already sent by (output started at /Users/mbutcher/Code/DrupalCore/6/drupal/includes/install.inc:188) in /Users/mbutcher/Code/DrupalCore/6/drupal/includes/install.inc on line 618
Warning: Cannot modify header information - headers already sent by (output started at /Users/mbutcher/Code/DrupalCore/6/drupal/includes/install.inc:188) in /Users/mbutcher/Code/DrupalCore/6/drupal/includes/install.inc on line 619
Environment:
CVS checkout of DRUPAL-6 branch (from Sept 11, 2008)
Mac OS 10.5
PHP 5.2.5
Apache 2.0.59
Firefox 3.0.1
Comments
Comment #1
kaustubhvp commentedya pal!
same error with me
i just edited that /includes/install.inc file on line no 188
the edit is as follows
using text editer reach to line no 176 of install.inc
$default_settings = './sites/default/default.settings.php';
this will be written there
so just modify it to
$default_settings = './sites/default/settings.php';
and reload the installer
lemme know is it worked for u too...
Comment #2
gábor hojtsyWell, you are not supposed to delete *any* files which come with the Drupal distribution. If Drupal would check all files on whether they exist before loading them, that would be a pretty big performance headache. Drupal just needs to assume you do not delete random files (including default.settings.php). I admit this default settings file could more easily be deleted, so it might make sense to build in more comprehensive checking to look for problems there. That should be a Drupal 7 feature request though.
Comment #3
damien tournoud commentedThis is a duplicate of #312144: Install fails when default.settings.php is not present, even if this one was technically first.
Comment #4
torgrim commentedThanks Kaust, the mod for install.inc worked!
I did the exact same mistake (just renaming the default.settings.php to settings.php and changing permissions. When I discovered this it was too late). Many posts about this in this forum dating over a year ago, and nothing has been done to this problem!?? This is a big NONO lets stay to Joomla for many newcomers/testers of Drupal. Luckily I solved it, but I gather theres many that did not. Strange since a simple sentence like "The file default.settings.php must still exist in the sites/deafult/ folder!" would have solved the problem.
Also please fix the modules section of Drupal.org. Have a look at joomla.com > Extensions and you will know what I mean. At least categorize them...
Code might be better than Joomla, but after visiting your site and downloading/testing Drupal on my server, I am actually surprised that Drupal is mentioned side by side to Joomla. The Drupal site is years behind in usability and ease of finding what you need. No wonder people choose Joomla before Drupal.
Comment #5
Creators.guru commentedthanks pal