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

Problem Upgrading V 3 to Version 4

News and General

Chris Malumphy's avatar
Chris Malumphy
16 posts
7 years ago
Chris Malumphy's avatar Chris Malumphy

In attempting to upgrade from version 3 to version 4 I misread the documentation and began copying over the system/user directory which destroyed the underlying config.php file. I have a backup of the V 2 config.php file but not V 3. My site now generates a

Exception Caught You must define the following database parameters: database DBConfig.php:157

when I try to access the site or the control panel. Any suggestions?

What changes would I need to make to the v2 config.php file for it to work with v4?

       
Jeremy S.'s avatar
Jeremy S.
353 posts
7 years ago
Jeremy S.'s avatar Jeremy S.

First guess is that something is wrong with your database credentials. Have you made sure that database name, user/pass, dbdriver etc. are correct and there are no typos? Also if that’s all good, try changing hostname from ‘localhost’ to 127.0.0.1.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

I would contact your host to request a copy of your backups, and to make sure you perform the v3 to v4 upgrade with your site’s configuration intact. If for some reason that’s not possible, you can perform a fresh installation of v3 (on a separate database) in this environment, and use that config as the basis of your v4 upgrade. Failing that, you can contact support and we can help you setup a config file based on your old v2 config file.

       

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.