Page 1 of 1

Database error loading admin console

Posted: Mon Jul 30, 2012 11:28 pm
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...

Re: Database error loading admin console

Posted: Tue Jul 31, 2012 12:36 am
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...

Re: Database error loading admin console

Posted: Wed Aug 01, 2012 1:36 am
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.

Re: Database error loading admin console

Posted: Wed Aug 01, 2012 9:23 am
by uniqu3
Then you have owner problem on tmp/templates_c and your CHMOD didn't take any effect.

Re: Database error loading admin console

Posted: Sun Aug 05, 2012 1:41 pm
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.