coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Arrowhead on March 18, 2004, 03:36:36 PM

Title: [Solved]: Warning: Undefined index: REMOTE_ADDR
Post by: Arrowhead 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?
Title: [Solved]: Warning: Undefined index: REMOTE_ADDR
Post by: Casper on March 18, 2004, 04:50:35 PM
When are you getting this warning.  Are you using debug mode.
Title: [Solved]: Warning: Undefined index: REMOTE_ADDR
Post by: Arrowhead 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/
Title: [Solved]: Warning: Undefined index: REMOTE_ADDR
Post by: Casper 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
Title: [Solved]: Warning: Undefined index: REMOTE_ADDR
Post by: Arrowhead 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"]);