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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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