Cannot Upgrade to 1.9.4.1 Until ADODB Error Resolved

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
rshepard
Forum Members
Forum Members
Posts: 30
Joined: Sat Sep 25, 2010 6:50 pm

Cannot Upgrade to 1.9.4.1 Until ADODB Error Resolved

Post by rshepard »

I want to upgrade from the existing 1.8.2 version and prepare the local development version of our site for deployment. However, I cannot access the current version because of an internal server error. Here's the current versions of relevant software:
Slackware-13.1
PostgreSQL-9.0.3
PHP-5.2.17
httpd-2.2.17
CMSMadeSimple-1.8.2
Firefox-3.6.16

/var/log/httpd/error_log shows:
[Tue Apr 05 10:29:43 2011] [error] [client 127.0.0.1] PHP Fatal error: Attempt to connect to database cms on rshepard@localhost failed in /var/www/htdocs/cmsms/lib/adodb.functions.php on line 85

And the php function in adodb.functions.php is:
if (FALSE == $connect_result)
{
$str = "Attempt to connect to database {$config['db_name']} on {$conf
trigger_error($str,E_USER_ERROR);
die($str);
}

Any and all help will be much appreciated.

Rich
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Cannot Upgrade to 1.9.4.1 Until ADODB Error Resolved

Post by Dr.CSS »

That means it can't connect to the DB so it must be that you moved the site to a test server or ?, check the config.php for DB path and make sure it is correct, is not a CMSMS fault...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Cannot Upgrade to 1.9.4.1 Until ADODB Error Resolved

Post by Wishbone »

'localhost' and 'cms' sounds like the default settings.
rshepard
Forum Members
Forum Members
Posts: 30
Joined: Sat Sep 25, 2010 6:50 pm

Re: Cannot Upgrade to 1.9.4.1 Until ADODB Error Resolved

Post by rshepard »

DrCSS/Wishbone:

Thanks for the pointer to config.php. It had the database as 'postgres7' and I just changed that to 'postgres'. Otherwise, everything is the same as before:
$config['dbms'] = 'postgres';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'rshepard';
$config['db_password'] = '<whatever>';
$config['db_name'] = 'cms';

However, I'm still getting the same error in error_log so there's still a problem connecting to the database. Is 'postgres' the proper name in config.php?

Thanks,

Rich
Locked

Return to “[locked] Installation, Setup and Upgrade”