Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you write
$databases['default']['default'] = array (
'database' => 'drupal',
'username' => 'root',
'password' => '',
'prefix' => '',
'host' => '172.17.8.101',
'port' => '49036',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
and go to install drupal. You get a white screen. Related Apache log:
PHP Fatal error: Class name must be a valid object or a string in /var/www/html/core/modules/field/src/FieldStorageConfigStorage.php on line 160
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedI think this is "works as designed".
You must let the installer write the database configuration to settings.php. If you put it there in advance, Drupal is considered to be already installed.
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
stefan.r CreditAttribution: stefan.r commentedIf you put the database settings in there yourself it should still install as long as the database is empty, it would just skip the DB settings step in the installer right?
Comment #5
webankit CreditAttribution: webankit as a volunteer commented@stefan.r this use to happen in D-7, its not happening in latest dev D-8. I am also trying to skip Database settings. Probably in D8 there is Config-Directory also handled in the same step. But if you write Config-Directory in settings.php, it says site already exist, even with blank Database.
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedAh, just closed another issue like this one.
This look like a duplicate of #2581457: Pre-configured settings.php with uninstalled Drupal causes the installer to refuse to move forward and according to this comment int that issue this was fixed in 8.3.x in #728702: Visiting index.php should redirect to install.php if settings.php already has database credentials but database is empty..
Please reopen if you think this is an error.