Forums / General Questions / sporadic troubles connecting to database

sporadic troubles connecting to database

Views: 674

Results 1 to 7 of 7
9 Feb 2012, 4:22 PM
#1
doone avatar

doone

New Zenner

Join Date:
Nov 2004
Posts:
10
Plugin Contributions:
0

sporadic troubles connecting to database

Getting a message saying unable to connect to database. There are a whole lot debug txt files in cache.

PHP Warning: Division by zero in /home/MYWEBSITE/public_html/includes/functions/functions_general.php on line 1329

Can anyone help?

9 Feb 2012, 4:24 PM
#2
doone avatar

doone

New Zenner

Join Date:
Nov 2004
Posts:
10
Plugin Contributions:
0

Re: sporadic troubles connecting to database

sorry, zen cart 1.5.

Brandy new site.

9 Feb 2012, 4:30 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,680
Plugin Contributions:
0

Re: sporadic troubles connecting to database

Is this a clean install of 1.5 or and upgrade?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Feb 2012, 4:39 PM
#4
doone avatar

doone

New Zenner

Join Date:
Nov 2004
Posts:
10
Plugin Contributions:
0

Re: sporadic troubles connecting to database

It's a clean install. Installed by hand, not using Fantastico or anything similar.

10 Feb 2012, 4:06 PM
#5
doone avatar

doone

New Zenner

Join Date:
Nov 2004
Posts:
10
Plugin Contributions:
0

Re: sporadic troubles connecting to database

More errors.

[08-Feb-2012 10:53:51] PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED :: select * from project_version WHERE project_version_key = 'Zen-Cart Database' in /home/MYSITE/public_html/includes/classes/db/mysql/query_factory.php on line 101

[07-Feb-2012 13:19:31] PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED :: select count(*) as total
from sessions
where sesskey = 'a36be497837f69a73f161a75fd671e59' in /home/MYSITE/public_html/includes/classes/db/mysql/query_factory.php on line 101

[09-Feb-2012 11:28:38] PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED :: select count(*) as total
from sessions
where sesskey = 'd66c32acc6daa9eefd44d91b06dac15e' in /home/MYSITE/public_html/includes/classes/db/mysql/query_factory.php on line 101

[05-Feb-2012 02:38:49] PHP Warning: require(../init_admin_auth.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/sampowe1/public_html/ADMINISTRATORSDIRECTORY/includes/init_includes/overrides/init_admin_auth.php on line 20
[05-Feb-2012 02:38:49] PHP Warning: require(../init_admin_auth.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/MYSITE/public_html/ADMINISTRATORSDIRECTORY/includes/init_includes/overrides/init_admin_auth.php on line 20
[05-Feb-2012 02:38:49] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '../init_admin_auth.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/MYSITE/public_html/ADMINISTRATORSDIRECTORY/includes/init_includes/overrides/init_admin_auth.php on line 20

10 Feb 2012, 4:08 PM
#6
doone avatar

doone

New Zenner

Join Date:
Nov 2004
Posts:
10
Plugin Contributions:
0

Re: sporadic troubles connecting to database

LOL

The smileys aren't supposed to be there. It's a zero and a colon.

11 Feb 2012, 5:41 AM
#7
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: sporadic troubles connecting to database

Where is your site hosted?

How often is 'sporadic' ?

Other than these sporadic episodes is the store otherwise functioning OK?

Are there any specific circumstances or conditions that will invoke the issue?

Basically, we need a lot more clues than you have given.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.