Thread

Upgrade 2 to 3 error

February 11, 2019 7:10am

Subscribe [2]
  • #1 / Feb 11, 2019 7:10am

    Peter Stalker

    6 posts

    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?

  • #2 / Feb 12, 2019 11:08am

    Kevin Cupp's avatar

    Kevin Cupp

    759 posts

    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'
     ),
    );
  • #3 / Feb 12, 2019 11:31am

    Peter Stalker

    6 posts

    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?

  • #4 / Feb 12, 2019 11:35am

    Kevin Cupp's avatar

    Kevin Cupp

    759 posts

    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?

  • #5 / Feb 12, 2019 11:44am

    Peter Stalker

    6 posts

    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.

  • #6 / Feb 12, 2019 11:47am

    Kevin Cupp's avatar

    Kevin Cupp

    759 posts

    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.

  • #7 / Feb 12, 2019 11:51am

    Peter Stalker

    6 posts

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

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases