cpg not PHP 5 compatible? cpg not PHP 5 compatible?
 

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]

Main Menu

cpg not PHP 5 compatible?

Started by chtito, November 08, 2004, 10:20:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chtito

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!
Vous pouvez poser vos questions en français sur le forum francophone !

Tranz

please search the forums for php5 for the fix.

chtito

#2
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!
Vous pouvez poser vos questions en français sur le forum francophone !

Tarique Sani

register_long_arrays is on by default in PHP 5
SANIsoft PHP applications for E Biz

Nibbler

That change is already made for CPG 1.4