Undefined Variables Errors Undefined Variables Errors
 

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 Variables Errors

Started by isocreative, December 20, 2009, 03:29:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

isocreative

Hello. I'm trying to help my friend who deleted and then restored his entire site. Since restoring it, the gallery no longer works. I set this gallery up for him a few years ago, but was unsuccessful trying the fix I found in the documentation.

Gallery URL: http://www.grovesphotography.net/coppermine/index.php

Errors:
Notice: Undefined variable: HTTP_POST_VARS in /home/jagphoto/grovesphotography.net/coppermine/include/init.inc.php on line 148
Notice: Undefined variable: HTTP_GET_VARS in /home/jagphoto/grovesphotography.net/coppermine/include/init.inc.php on line 156
Notice: Undefined variable: HTTP_COOKIE_VARS in /home/jagphoto/grovesphotography.net/coppermine/include/init.inc.php on line 163
Notice: Undefined variable: HTTP_SERVER_VARS in /home/jagphoto/grovesphotography.net/coppermine/include/init.inc.php on line 171
Notice: Undefined variable: HTTP_SERVER_VARS in /home/jagphoto/grovesphotography.net/coppermine/include/init.inc.php on line 178

All files appear to be present on the server, and the database is restored and populated.

I found this is the documentation, and tried the fix, but it did not solve the problem.

Edit the file "init.inc.php" and look for 
$PHP_SELF = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : $_SERVER['SCRIPT_NAME'];

Replace it with  $PHP_SELF = $_SERVER['PHP_SELF'];

Any other advice is much appreciated.

isocreative

Marked this as solved. I just rebuilt the whole thing instead. Thanks anyhow.

poubao

<!--Coppermine Photo Gallery 1.3.4-->  >:(
Upgrade asap last ver cpg 1.4.25
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

Joachim Müller

Moving from the cpg1.4.x support board to the old support board for cpg1.3.x, for which support has been abandoned many years ago.

The answer to your question would have been: turn notices off if you don't know what notices are meant for.