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: [Solved]: Warning: Undefined index: REMOTE_ADDR  (Read 6636 times)

0 Members and 1 Guest are viewing this topic.

Arrowhead

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Warning: Undefined index: REMOTE_ADDR
« on: March 18, 2004, 03:36:36 pm »

Hi, I have installed version 1.2 and I am getting two errors. One of them has been solved using the FAQ-documentation.

But the other one I cann't find..

The error is:
Warning: Undefined index: REMOTE_ADDR in /../../../gallery/include/init.inc.php on line 98

Can somebody help me?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[Solved]: Warning: Undefined index: REMOTE_ADDR
« Reply #1 on: March 18, 2004, 04:50:35 pm »

When are you getting this warning.  Are you using debug mode.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Arrowhead

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Warning: Undefined index: REMOTE_ADDR
« Reply #2 on: March 18, 2004, 05:15:52 pm »

Quote from: "casper"
When are you getting this warning.  Are you using debug mode.


No... just normal settings.

When I surf to the gallery-page, this error is mentioned on top of the window.... but I can log on normally. The error stays...

The other error was:

 Warning: Undefined index: SCRIPT_NAME in /www.your-domain.com/include/init.inc.php on line 91

This one was fixed

See http://www.artemis79.nl/gallery/
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[Solved]: Warning: Undefined index: REMOTE_ADDR
« Reply #3 on: March 18, 2004, 06:49:39 pm »

OK, I think you'll find the answer on this thread, http://forum.coppermine-gallery.net/index.php?topic=1375
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Arrowhead

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Warning: Undefined index: REMOTE_ADDR
« Reply #4 on: March 19, 2004, 08:30:36 am »

Quote from: "casper"
OK, I think you'll find the answer on this thread, http://forum.coppermine-gallery.net/index.php?topic=1375


Thank you very much..

The problem has been solved using:

$raw_ip = stripslashes($_ENV["REMOTE_ADDR"]);
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 14 queries.