Undefined Index? Undefined Index?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Undefined Index?

Started by willstein, November 29, 2005, 03:37:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

willstein

I havent touched it in about a week.
This came up randomly...

any ideas?

Notice: Undefined index: debug_mode in /home/stfusaco/public_html/gallery/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query




kegobeer

What version are you running?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

willstein


willstein

This error also comes up with fetch:

User 'stfusaco_photo' has exceeded the 'max_questions' resource (current value: 50000)
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/stfusa/public_html/fetch/cpmfetch_dao.php on line 710

kegobeer

Have you made any modifications recently?  Has you host done anything recently?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

That would be a limit on the number of db queries you are permitted to run per hour set by your host.

willstein

No I did not make any changes recently.

It looks like the site is back up.
50,000 queries/hour seems like a lot.

What are the major query hogs?
I think I read some where that it could be reduced by deleting the "Overall hits" statistic.

Any suggestions to reduce DB queries?

Stramm

not really, the stats just need lots of resources (when you have a huge gallery, pics, users, comments). but it's 'only' 3-4 queries per index load

But if you don't need the stats you can remove them