Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  129 Posts | 0 Stories | 874 Comments | 677 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

I got the following error on a fresh install of Scuttle (0.7.2) on a newly created Windows Server 2003 with PHP (5.2.6),  MySQL5.0.51b) and IIS 6:

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead in C:\Inetpub\Scuttle\includes\php-gettext\gettext.inc on line 131

Warning: setlocale() [function.setlocale]: Invalid locale category name LC_MESSAGES, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in C:\Inetpub\Scuttle\includes\php-gettext\gettext.inc on line 131

After googling for a while I found this simple solution (here: http://www.hermann-uwe.de/blog/server-client-bookmarks-a-la-del-icio-us#comment-52097 posted by CharlesW):
Add the line: if (!defined('LC_MESSAGES')) define('LC_MESSAGES', 5);
to the top of functions.inc.php.


Thanks a million CharlesW!!!

posted on Friday, July 04, 2008 8:15 AM