[Solved]: Warning: Undefined index: REMOTE_ADDR [Solved]: Warning: Undefined index: REMOTE_ADDR
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Warning: Undefined index: REMOTE_ADDR

Started by Arrowhead, March 18, 2004, 03:36:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Arrowhead

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?

Casper

When are you getting this warning.  Are you using debug mode.
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

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/

Casper

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

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"]);