>>
Site Map
>>
Forums
>>
PHP-Nuke Common Problems & Solutions
Forum module - topics in forum:
PHP-Nuke Common Problems & Solutions - <font color=red>Look Here First For Your Problems And Get Their Solutions.</font><br><br>See also <a href="http://phpnuke-uk.net/modules.php?name=PHP-Nuke_HOWTO&page=common-installation-problems.html"><b>this</b></a> section of the phpnuke howto.<br>
Warning: setlocale() [function.setlocale]: Passing locale...
---- The Error
- Along with this error you will be given the file name and line number that is causing the error
| Code: : |
| Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. |
---- The Reason
- This is a PHP error and isn’t directly a PHP-NUKE error. In around php version 4.3.1 they changed the setlocale() function for some reason, it used to be:
| Code: : |
| setlocale("LC_TIME","fr_FR"); |
but now the quotes need to be remove on the first part:
| Code: : |
| setlocale(LC_TIME,"fr_FR"); |
- So not every one will need to use this fix, but at some stage if your hosting company upgrades there PHP package to a version that doesn’t need the quotes you might suddenly start getting these errors
---- The Solution
- Remove the quotes from around "LC_TIME" in those files/lines mentioned in your errors. This means "LC_TIME" should be changed to LC_TIME.
---- Still Not Working
- If you have done the above solution and you are still having problems please post up your specific problem in the Installation Forum and we will try to help
- In your post if you can post up your PHP version, Nuke version and that you have tried this fix, also any errors you are getting
Added Poll