Won't accept cookies and PHP5 - Problems Won't accept cookies and PHP5 - Problems
 

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]

Main Menu

Won't accept cookies and PHP5 - Problems

Started by sdstern, November 11, 2005, 04:34:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdstern

I was running into the "Your Browser Won't Accept Script's Cookies" after reinstalling on PHP5.

I found this in the htppd error_log:


PHP Notice:  Undefined index:  PATH_TRANSLATED in /var/www/html/gallery/index.php on line 21
PHP Notice:  Undefined offset:  -1 in /var/www/html/gallery/index.php on line 22
PHP Notice:  Undefined variable: HTTP_POST_VARS in /var/www/html/gallery/include/init.inc.php on line 148
PHP Notice:  Undefined variable: HTTP_GET_VARS in /var/www/html/gallery/include/init.inc.php on line 156
PHP Notice:  Undefined variable: HTTP_COOKIE_VARS in /var/www/html/gallery/include/init.inc.php on line 163
PHP Notice:  Undefined variable: HTTP_SERVER_VARS in /var/www/html/gallery/include/init.inc.php on line 171
PHP Notice:  Undefined variable: HTTP_SERVER_VARS in /var/www/html/gallery/include/init.inc.php on line 178
PHP Notice:  Undefined variable: HTTP_POST_VARS in /var/www/html/gallery/include/init.inc.php on line 148,
PHP Notice:  Undefined variable: HTTP_COOKIE_VARS in /var/www/html/gallery/include/init.inc.php on line 163, referer: http://sterndata.com/gallery/
PHP Notice:  Undefined variable: HTTP_SERVER_VARS in /var/www/html/gallery/include/init.inc.php on line 171, referer: http://sterndata.com/gallery/
PHP Notice:  Undefined variable: HTTP_SERVER_VARS in /var/www/html/gallery/include/init.inc.php on line 178, referer: http://sterndata.com/gallery/


I think all these should be changed to $_POST, $_GET, $_COOKIE,  and $_SERVER

http://sterndata.com/gallery

Nibbler

Solution is to enable register_long_arrays in php.ini

sdstern