Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Won't accept cookies and PHP5 - Problems  (Read 12121 times)

0 Members and 1 Guest are viewing this topic.

sdstern

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • My Picture Gallery
Won't accept cookies and PHP5 - Problems
« 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
« Last Edit: November 11, 2005, 05:08:27 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Won't accept cookies and PHP5 - SOLVED
« Reply #1 on: November 11, 2005, 04:58:50 pm »

Solution is to enable register_long_arrays in php.ini
Logged

sdstern

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • My Picture Gallery
Re: Won't accept cookies and PHP5 - Problems
« Reply #2 on: November 11, 2005, 05:01:41 pm »

Thanks!  register_long_arrays solved it.
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 16 queries.