I completed an upgrade from 2.81 to 3.47, and the CP initially seemed fine. But the site gave the error
You must define the following database parameters: database DBConfig.php:157
Now the CP access is giving the same error.
There are mentions of this problem on other threads, but I I am not sure how to start addressing this issue. Can anyone advise?
Did you copy over your database.php? The updater should have made a new entry in your config.php for database
. Either way, you should have something like this in your config.php to specify database settings:
$config['database'] = array(
'expressionengine' => array(
'hostname' => 'localhost',
'database' => 'ee',
'username' => 'username',
'password' => 'password'
),
);
Kevin,
Thanks for your response. Yes I did copy over database php. But the updated config.php after the attempted update does not have anything about the database. Indeed the config.php sems unchanged, still referrring to app version 281 If I copy in your code with the database information from database.php could that resolve things?
Kevin,
Yes I did and it progressed through all the different versions. The odd thing is that it appeared to succeed and showed me the new control panel. It was the site that would not work. Then when I went back to the control panel it gave the same error message as the site.
I will at least try inserting the database info and if that does not work, I will I think maybe I should just revert to my back up and go round the process again.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.