Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Problem on include/functions.inc.php  (Read 30534 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.015 seconds with 19 queries.