ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Upgrade issues 2.1.3 to 2.1.4

February 03, 2011 3:11pm

Subscribe [4]
  • #1 / Feb 03, 2011 3:11pm

    adamwiggall

    178 posts

    Team,

    I’m running an install of 2.1.3 on a local MAMP box and a remote server (at EngineHosting). I am version controlling changes between the two using GIT and both installs are running off a separate database.

    In order to accommodate the separate databases I am performing a server http host check in my database.php file like so,

    if ($_SERVER['HTTP_HOST'] == "dev.localdevsite.com") {
        $active_group = 'localdev';
    } else {
        $active_group = 'expressionengine';
    }

    Today I attempted to upgrade the install to the 2.1.4 Beta (on the MAMP install) and hit ‘can’t connect to database’ error (controllers/wizard.php line 1452).

    Looking at wizard.php around the error I saw that line 1488 is trying to connect to the remote DB

    $this->load->database($db['expressionengine'], FALSE, TRUE);

    I got around the issue by editing the file to load my local MAMP DB like so

    $this->load->database($db['localdev'], FALSE, TRUE);

    I could then perform the update locally, sync changes to the remote server and continue on (thankfully).

    I was wondering whether this would be considered a bug as the $active_group method for DB config is the recommended method?

    Could the wizard look for the active group and make it changes based off that?

    Thanks,

  • #2 / Feb 04, 2011 8:22am

    Sue Crocker

    26054 posts

    Hi, Adam. Why don’t you put it in the bug tracker, and the devs will decide if it is one or not. 😊 I honestly don’t know, but this way it’ll be there just in case it is. Make sense?

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

ExpressionEngine News!

#eecms, #events, #releases