coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Lasivian on December 22, 2005, 04:57:15 AM

Title: Blank screen issue.
Post by: Lasivian on December 22, 2005, 04:57:15 AM
Can't get into index.php or most anything else.

Other PHP runs fine, not a server issue. (Had to repair a previous PHP4 install)

When I do "php index.php" from command line I get:

Notice: Undefined index:  REMOTE_ADDR in /usr/local/www/data/coppermine/include/init.inc.php on line 178

I'm running Apache/2.1.9 (FreeBSD) PHP/4.4.1

Thanks

Title: Re: Blank screen issue.
Post by: Lasivian on December 22, 2005, 05:47:39 AM
I found this in another thread:

Quotetry replacing
Code:

$raw_ip = stripslashes($HTTP_SERVER_VARS['REMOTE_ADDR']);

with
Code:

$raw_ip = stripslashes($_SERVER["REMOTE_ADDR"]);

or
Code:

$raw_ip = stripslashes($_ENV["REMOTE_ADDR"]);

but it's stil al no-go.