We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Upgrade 2 to 3 error

News and General

Peter Stalker's avatar
Peter Stalker
6 posts
6 years ago
Peter Stalker's avatar Peter Stalker

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?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
6 years ago
Kevin Cupp's avatar Kevin Cupp

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'
 ),
);
       
Peter Stalker's avatar
Peter Stalker
6 posts
6 years ago
Peter Stalker's avatar Peter Stalker

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 Cupp's avatar
Kevin Cupp
791 posts
6 years ago
Kevin Cupp's avatar Kevin Cupp

It could resolve things. I’d worry that not even your app_version was updated though, it’s like the updater didn’t run. You ran the updater, correct?

       
Peter Stalker's avatar
Peter Stalker
6 posts
6 years ago
Peter Stalker's avatar Peter Stalker

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.

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
6 years ago
Kevin Cupp's avatar Kevin Cupp

Very odd, yes might be good to start over, I’d worry about files reverting themselves with no explanation. If you need some direct help, submit a support ticket and we can take a closer look.

       
Peter Stalker's avatar
Peter Stalker
6 posts
6 years ago
Peter Stalker's avatar Peter Stalker

Yes, it would be better to start again and see if I have better luck next time.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.