PHP

Upgrading PHPNuke

Topics

The times that I feel like a dumb fucker a really seldom, but tonight was such a memorable moment. I upgraded PHP to version 4.3.2, and immediately all my PHPNuke sites went blind, screaming Warning : Passing locale category name as string is deprecated. Use the LC_* -constants instead. I sighed, and immediately upgraded my PHPNuke5.2 to 6.5, and of course, the upgraded failed. What do you expect from PHPNuke ?

So I had no other choice but dropping the database, and rebuilding this site from scratch. Of course, some hours later, I found the solution to my problem : just don't use quotes while setting locale (LC_) vars, like the cryptic error message said :

setlocale(LC_TIME,"fr_FR");

instead of :

setlocale("LC_TIME","fr_FR");