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.

Database Settings > Preference “Your database.php file seems to have a problem. Unable to find the active group” Error

September 13, 2012 9:37am

Subscribe [0]
  • #1 / Sep 13, 2012 9:37am

    tracesmart

    9 posts

    Hi,

    I’ve recently upgraded from version v2.1.0 to v2.5.2 successfully apart from this one issue remaining. When trying to update the database config using the preferences in Database Settings, I get a:

    “Your database.php file seems to have a problem.  Unable to find the active group” Error

    When accessing the page initially to perform the update, neither of the options had a value. I can set the Enable Database Debugging option successfully when just setting this value but when I try to set the
    Persistent Database Connection option, that’s when I get the error.

    Looking through the code it seems that it can’t find the $db[‘expressionengine’][‘pconnect’] value to make the change.

    Any help would be great

    P.S. Can you close/delete the forum thread 224236 which was started in the wrong group.

  • #2 / Sep 14, 2012 9:02am

    tracesmart

    9 posts

    Hi,

    Can anybody help with this as it’s the last issue remaining? I don’t really want to put it live with any outstanding issues

    Regards

    Tracesmart

  • #3 / Sep 14, 2012 5:44pm

    Kevin Smith

    4784 posts

    Hi Tracesmart,

    Could you check to see if your /system/expressionengine/config/database.php file has the proper information in it? Sounds like it might be blank or missing some database config variables. It should look similar to this:

    <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    
    $active_group = 'expressionengine';
    $active_record = TRUE;
    
    $db['expressionengine']['hostname'] = 'localhost';
    $db['expressionengine']['username'] = 'database_username';
    $db['expressionengine']['password'] = 'database_pw';
    $db['expressionengine']['database'] = 'database_name';
    $db['expressionengine']['dbdriver'] = 'mysql';
    $db['expressionengine']['pconnect'] = FALSE;
    $db['expressionengine']['dbprefix'] = 'exp_';
    $db['expressionengine']['swap_pre'] = 'exp_';
    $db['expressionengine']['db_debug'] = TRUE;
    $db['expressionengine']['cache_on'] = FALSE;
    $db['expressionengine']['autoinit'] = FALSE;
    $db['expressionengine']['char_set'] = 'utf8';
    $db['expressionengine']['dbcollat'] = 'utf8_general_ci';
    $db['expressionengine']['cachedir'] = '/path_to/system/expressionengine/cache/db_cache/';
    
    /* End of file database.php */
    /* Location: ./system/expressionengine/config/database.php */
  • #4 / Sep 17, 2012 4:47am

    tracesmart

    9 posts

    Hi Kevin,

    Thanks for replying. I finally figured out what the problem was. We have seperate config files that were being included in the database.php file. After putting the config options directly in the database file, it fixed the problem


    Regards

    Tracesmart

  • #5 / Sep 18, 2012 4:13pm

    Kevin Smith

    4784 posts

    Ah, good! Glad you were able to get that all fixed up. If there’s anything else I can do, just let me know!

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

ExpressionEngine News!

#eecms, #events, #releases