Database error loading admin console
Posted: Mon Jul 30, 2012 11:28 pm
CMS Version 1.10.3
PHP Version 5.2.4
MySql Version 5.0.92
My site is running fine, but when I go to the admin type in sitename/admin I get the following error. Just recently took over the site and the person who set it up is unavailable so I don't have history. My asumption is that the admin site worked fine in the past. The site was recently moved to a new hosting server.
Here is the error:
/home/content/97/9474397/html/nif2/lib/adodb.functions.php:80 - offsetGet
/home/content/97/9474397/html/nif2/lib/classes/class.CmsObject.php:218 - adodb_connect
/home/content/97/9474397/html/nif2/include.php:156 - GetDb
/home/content/97/9474397/html/nif2/admin/index.php:27 - require_once
FATAL ERROR: Could not find database connection key dbms in the config file
Here is a copy of my config.php file:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = '****';
$config['db_username'] = '***';
$config['db_password'] = '***';
$config['db_name'] = '****';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://nif2.pcompservices.us';
//$config['root_url'] = 'http://nif.tld';
$config['timezone'] = 'America/New_York';
$config['default_encoding'] = 'utf-8';
//$config['debug'] = true;
?>
DON'T EVER PUT DB INFO IN A FORUM, UNLESS YOU WANT TO GET HACKED...
PHP Version 5.2.4
MySql Version 5.0.92
My site is running fine, but when I go to the admin type in sitename/admin I get the following error. Just recently took over the site and the person who set it up is unavailable so I don't have history. My asumption is that the admin site worked fine in the past. The site was recently moved to a new hosting server.
Here is the error:
/home/content/97/9474397/html/nif2/lib/adodb.functions.php:80 - offsetGet
/home/content/97/9474397/html/nif2/lib/classes/class.CmsObject.php:218 - adodb_connect
/home/content/97/9474397/html/nif2/include.php:156 - GetDb
/home/content/97/9474397/html/nif2/admin/index.php:27 - require_once
FATAL ERROR: Could not find database connection key dbms in the config file
Here is a copy of my config.php file:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = '****';
$config['db_username'] = '***';
$config['db_password'] = '***';
$config['db_name'] = '****';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://nif2.pcompservices.us';
//$config['root_url'] = 'http://nif.tld';
$config['timezone'] = 'America/New_York';
$config['default_encoding'] = 'utf-8';
//$config['debug'] = true;
?>
DON'T EVER PUT DB INFO IN A FORUM, UNLESS YOU WANT TO GET HACKED...