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: Undefined Variables Errors  (Read 8671 times)

0 Members and 1 Guest are viewing this topic.

isocreative

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Undefined Variables Errors
« on: December 20, 2009, 03:29:58 am »

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.
Logged

isocreative

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Undefined Variables Errors
« Reply #1 on: December 20, 2009, 12:01:43 pm »

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

poubao

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: la
  • Offline Offline
  • Gender: Male
  • Posts: 277
    • Collections du Laos
Re: Undefined Variables Errors
« Reply #2 on: December 20, 2009, 12:44:02 pm »

<!--Coppermine Photo Gallery 1.3.4-->  >:(
Upgrade asap last ver cpg 1.4.25
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Undefined Variables Errors
« Reply #3 on: December 20, 2009, 08:02:20 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.