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.
Marked this as solved. I just rebuilt the whole thing instead. Thanks anyhow.
<!--Coppermine Photo Gallery 1.3.4--> >:(
Upgrade asap last ver cpg 1.4.25 (http://sourceforge.net/projects/coppermine/files/)
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.