coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: oreo on September 29, 2005, 10:18:55 AM

Title: Install Error
Post by: oreo on September 29, 2005, 10:18:55 AM
Hello,
I intalled latest version of Coppermine gallery : here (http://www.valthorens.com/cpg135)
and there are some errors -->
Notice: Undefined index: PATH_TRANSLATED in D:\Net-Advanced\na0041-1\cpg135\index.php on line 21

Notice: Undefined offset: -1 in D:\Net-Advanced\na0041-1\cpg135\index.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at D:\Net-Advanced\na0041-1\cpg135\index.php:21) in D:\Net-Advanced\na0041-1\cpg135\themes\classic\theme.php on line 810

Warning: Cannot modify header information - headers already sent by (output started at D:\Net-Advanced\na0041-1\cpg135\index.php:21) in D:\Net-Advanced\na0041-1\cpg135\themes\classic\theme.php on line 811

Warning: Cannot modify header information - headers already sent by (output started at D:\Net-Advanced\na0041-1\cpg135\index.php:21) in D:\Net-Advanced\na0041-1\cpg135\include\functions.inc.php on line 51


Do you what is the problem?
Thanks you
Title: Re: Install Error
Post by: artistsinhawaii on September 29, 2005, 10:52:17 AM
Oreo,

I believe this issue is the same as :

http://forum.coppermine-gallery.net/index.php?topic=21840.msg99820#msg99820

Dennis

Title: Re: Install Error
Post by: oreo on September 29, 2005, 04:23:16 PM
thanks you
I send a private message to Nibbler 'cause I don't understand when he says : "You can safely ignore the error messages."
How can ignore the error if it appears each time I'm connecting on my gallery...?
Title: Re: Install Error
Post by: Nibbler on September 29, 2005, 05:50:17 PM
You can remove some code from the index.php file

// Check if standalone is installed in a portal like phpNuke (added by DJMaze)
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
    echo "<html><body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.<br>".
         "Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
    die();
} // end check


That will remove the error.
Title: Re: Install Error
Post by: oreo on September 29, 2005, 05:55:18 PM
yeeeaaahhhhhhhh!!!!!
thanks you very much Nibbler.
it's perfect now
Title: Re: Install Error
Post by: oreo on September 29, 2005, 07:58:49 PM
excuse me...last question : is it possible to configure access (all photo, all size, everything...) only for register?
So if not register, link to the login page automaticly
thanks 4 all
Title: Re: Install Error
Post by: Nibbler on September 29, 2005, 08:41:18 PM
Please read the FAQ.
Title: Re: Install Error
Post by: Joachim Müller on September 30, 2005, 08:30:21 AM
..and respect the "one question per thread" policy you agreed to when signing up. PMing devs is not an option either, you're suppossed to post, not PM. Locking this thread now.