Advanced search  

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

Pages: [1]   Go Down

Author Topic: Problem on include/functions.inc.php  (Read 32550 times)

0 Members and 1 Guest are viewing this topic.

satsilem

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Problem on include/functions.inc.php
« on: April 19, 2007, 05:11:14 pm »

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




Logged

Nibbler

  • Guest
Re: Problem on include/functions.inc.php
« Reply #1 on: April 19, 2007, 06:13:49 pm »

1.3 is no longer supported. Update your gallery.
Logged

satsilem

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Problem on include/functions.inc.php
« Reply #2 on: April 19, 2007, 06:16:02 pm »

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

Nibbler

  • Guest
Re: Problem on include/functions.inc.php
« Reply #3 on: April 19, 2007, 07:52:02 pm »

Start by reading the documentation.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.