[ic] Solution for config error: Please specify the Locale directive in the configuration file 'catalog.cfg'

Mike Heins mike at perusion.com
Thu Feb 14 11:11:22 EST 2008

Quoting Davor Ocelic (docelic at mail.inet.hr):
> Hello folks,
> Regarding the error that a few others have reported in the past,
> config error: Please specify the Locale directive in the configuration file
> 'catalog.cfg'
> I've got an update. The error is lurking somewhere in the Admin UI code,
> where the setting of DEFAULT_LOCALE gets assigned an invalid value.
> The value of DEFAULT_LOCALE should be "en_US" (or another valid locale),
> but the Admin UI (irreproducibly) lowercased it to "en_us".
> This, of course, caused the Locale directive to end up undefined (no
> locale 'en_us' exists), resulting in the above unhelpful message.
> I've recorded this as a bug in our RT; until it is fixed, editing
> products/variable.txt and changing en_us to en_US is a good solution.
> The previous posts on this topic were:
> http://www.icdevgroup.org/pipermail/interchange-users/2004-May/039193.html
> http://www.icdevgroup.org/pipermail/interchange-users/2004-May/039194.html
> http://www.icdevgroup.org/pipermail/interchange-users/2004-May/039192.html
> http://www.icdevgroup.org/pipermail/interchange-users/2005-September/043823.html
> http://www.icdevgroup.org/pipermail/interchange-users/2004-November/041503.html

Is there any way to duplicate this? It doesn't happen for me or any catalog
I have, that I know of.

It could be caused by a locale database corrupted by user edits. The
locale options at login are derived from that.

Put this patch in:

--- /d/code/UI_Tag/version.coretag      2007-08-07 17:59:06.000000000 -0400
+++ /uit/version.coretag        2008-02-14 11:06:24.000000000 -0500
@@ -90,6 +90,7 @@
                if(@loc > 1) {
                        push @out, join ",", map { s/.*~:~//; $_ } sort @loc;
+::logDebug("locale_options out=" . ::uneval(\@out));
                $done_something = 1;
And see what locale options are produced. If one is lower case, there
is your culprit. Look in the global locale tables until you find it.

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer

More information about the interchange-users mailing list