Database error loading admin console

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jlsmicro
New Member
New Member
Posts: 3
Joined: Mon Jul 30, 2012 11:07 pm

Database error loading admin console

Post by jlsmicro »

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...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Database error loading admin console

Post by Dr.CSS »

Since it was just moved I would put the 1.10.3 install folder in and run mysite.com/install/index.php, of course you will have to fix some permissions...

BUT...
ON STEP 5 DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT...

This will fix any path errors you may have...
jlsmicro
New Member
New Member
Posts: 3
Joined: Mon Jul 30, 2012 11:07 pm

Re: Database error loading admin console

Post by jlsmicro »

Thanks for the response. When I ran the install. I get the following error.

Directory not writable! tmp/templates_c
Please correct by executing: chmod 777 or set writing permission for php process, exiting!

I updated and verified these permissions, but the error is still the same.
uniqu3

Re: Database error loading admin console

Post by uniqu3 »

Then you have owner problem on tmp/templates_c and your CHMOD didn't take any effect.
jlsmicro
New Member
New Member
Posts: 3
Joined: Mon Jul 30, 2012 11:07 pm

Re: Database error loading admin console

Post by jlsmicro »

That doesn't seem to be the problem. I went into the control panel of the server and verified permissions. They are all correct. To verify, I deleted the entire install and did a clean install of CMSMS and that worked just fine. When I recopied my files onto the install, same issue. I'm working on getting a new copy of the files from the past programmer, but no guarantee I'll get them, so still need to see if I can fix this issue.
Post Reply

Return to “CMSMS Core”