coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: chtito on November 08, 2004, 10:20:48 PM

Title: cpg not PHP 5 compatible?
Post by: chtito on November 08, 2004, 10:20:48 PM
I upgraded to PHP 5 on my server and i couldn't get cpg to work. I'm not a pro in PHP coding but i think that i figured out that it is because cpg uses extensively the "deprecated" $HTTP_POST_VARS kind of syntax. Apparently what was deprecated in previous versions of PHP is now forbidden in version 5 and the whole thing falls apart.

Is there a quick fix for that problem? Do you plan to make the code of cpg PHP5 compatible?

Thank you for that otherwise brilliant piece of software!
Title: Re: cpg not PHP 5 compatible?
Post by: Tranz on November 08, 2004, 10:56:24 PM
please search the forums for php5 for the fix.
Title: Re: cpg not PHP 5 compatible?
Post by: chtito on November 09, 2004, 09:52:34 AM
Right, I set register_long_arrays to On in the php.ini file and everything seems to have gotten back to normal.

Still, I would suggest to the team of developper to upgrade the whole source code to the new versions of these variables (HTTP_GET_VARS --> _GET) because it had been deprecated for a while and because it is extremely bewildering for the user if it doesn't occur to him to look at the http error logs (one of the many errors i had was red message when trying to authenticate: "Your navigator does not accept cookies" hmmm ??? i had no idea that PHP5 could be related to that! now i understand why, of course)

Thanks a lot, and sorry for the noise!
Title: Re: cpg not PHP 5 compatible?
Post by: Tarique Sani on November 09, 2004, 10:55:29 AM
register_long_arrays is on by default in PHP 5
Title: Re: cpg not PHP 5 compatible?
Post by: Nibbler on November 09, 2004, 12:10:08 PM
That change is already made for CPG 1.4