Problem on include/functions.inc.php Problem on include/functions.inc.php
 

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

Problem on include/functions.inc.php

Started by satsilem, April 19, 2007, 05:11:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

satsilem

Hello to everybody.

I use Coppermine Photo Gallery 1.3.2   

and I moved from my old server (Apache, MySQL 4.1, PHP4)
to a new one (Apache, MySQL 4.1.1.4, PHP4)
and every time I try to select an album I have this error

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


These lines ( functions.inc.php on line 96) are:

function db_error($the_error)
{
        global $CONFIG;

        if (!$CONFIG['debug_mode']) {
            cpg_die(CRITICAL_ERROR, 'There was an error while processing a database query', __FILE__, __LINE__);
        } else {

                $the_error .= "\n\nmySQL error: ".mysql_error()."\n";

                $out = "<br />There was an error while processing a database query.<br /><br/>
                    <form name='mysql'><textarea rows=\"8\" cols=\"60\">".htmlspecialchars($the_error)."</textarea></form>";

            cpg_die(CRITICAL_ERROR, $out, __FILE__, __LINE__);
        }
}


Can anybody point where should I look in order to solve this problem.

Thanks in advance for your help





Nibbler

1.3 is no longer supported. Update your gallery.

satsilem

Thanks for the reply, where do I have to start in order to upgrade to a newer version?

Nibbler