Hi i have installed curl on my server but evry site that is using php nuke now give me this error:
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/user/mainfile.php on line 565
any help?
In mainfile.php line 565 find...
setlocale ("LC_TIME", "$locale");
You need to remove the quote marks so as to have...
setlocale (LC_TIME, $locale);
You may run into this error when accessing other modules also...but the fix will be the same 🙂
Yes but i cant change evry php nuke site that is on my server🙂 any other solution?
Thank you
Only other thing I know to do is roll back to PHP 4.2.3
Barring that, you're dealing with deprecated syntax, so really it needs to change.
But...if you have root you should be able to remove the quotes around all occurences of LC_TIME in all files using GREP or some similar util. I don't know the details, but I do know it's possible.