Undefined index error message Undefined index error message
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Undefined index error message

Started by xirishbutterfly, July 21, 2005, 09:57:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xirishbutterfly

I've been looking through the boards and I didn't find anything to help me out but I may, of course, accidentally have skipped over it or not have seen it, etc. So if there is a topic on here that already answers my question/problem, then lead the way and thanks in advanced. So for the problem, I've had my gallery for a few months now and have't really had any major problems with it. But today when I went to check it, I got this message:

"Notice: Undefined index: debug_mode in /var/www/html/imagegallery/cpg132/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query"

There ARE some SIMILAR topics that I found but when I tried to follow those directions, it didn't work and the error message wasn't exactly the same anyways so I'm guessing it's a different problem I'm having. I'd like to hopefully not have to un-install this because it took a while to add all those images there but if I HAVE to, I'd like it to be a last resort.

Nibbler

There are very few reasons why you would ever need to uninstall and reinstall coppermine. If you enable debug mode manually then you will get a more detailed error message which we can use to determine the problem. To do this you need to get into your database using phpmyadmin, find the cpg_config table, and set debug_mode to 1 (from 0).

Any search for "There was an error while processing a database query" will tell you the same thing, likely with more detailed instructions to follow.

xirishbutterfly

#2
I went to go into my database and there aren't any tables. So I'm guessing that's the problem. Meaning now, I have a new problem, no tables in my database.

Edit: I ran update.php and it created 5 tables. Sadly, there is no cpg_config table. Any idea how to fix this?
Also, when I run update.php, at the top, this comes up:
"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/imagegallery/cpg132/update.php on line 38

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/imagegallery/cpg132/update.php on line 41"

Joachim Müller

don't double-post. I already replied to the other thread where you posted the very same question.

xirishbutterfly