News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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