coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: sdstern on November 11, 2005, 04:34:04 PM

Title: Won't accept cookies and PHP5 - Problems
Post by: sdstern on November 11, 2005, 04:34:04 PM
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
Title: Re: Won't accept cookies and PHP5 - SOLVED
Post by: Nibbler on November 11, 2005, 04:58:50 PM
Solution is to enable register_long_arrays in php.ini
Title: Re: Won't accept cookies and PHP5 - Problems
Post by: sdstern on November 11, 2005, 05:01:41 PM
Thanks!  register_long_arrays solved it.