Blank screen issue. Blank screen issue.
 

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

Blank screen issue.

Started by Lasivian, December 22, 2005, 04:57:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lasivian

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


Lasivian

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.