Welcome Guest, Not a member yet? Register   Sign In
"You have specified an invalid database connection group"
#1

[eluser]kyleb[/eluser]
I am running CI 1.74 because my clients still use scaffolding functionality for basic CRUD access. I do not use CI's DB library as I prefer to write my own connection strings and queries, but I do use the database class for scaffolding (perhaps obvious).

I've had no problems in the past, but I am getting this error now when I try to set up scaffolding in the exact same way (I think) as I have done many times before:

"You have specified an invalid database connection group."

Scaffolding controller code:

Code:
<?php

class edit extends Controller {

    function edit()
    {
        parent::Controller();
        $this->load->database();
        
        $this->load->scaffolding('facilities');
    }

}

(I've tried taking out the database load command; I get the same error either way.)

Database.php code:

Code:
$active_group = "default";
$active_record = FALSE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "illumina_script";
$db['default']['password'] = "xxxxx";
$db['default']['database'] = "illumina_dchca";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

(I've turned active record on/off, it makes no difference)

I am not autoloading the database, I am using the correct scaffolding password. What do you think the issue might be?

EDIT: I just checked my scaffolding code that works on another site. The code is exactly identical with only username/password/db name changes.

EDIT2: I use tank_auth with this site with no issues.




Theme © iAndrew 2016 - Forum software by © MyBB