Forum OpenACS Development: Error editing a locale

Collapse
Posted by Jonathan Kelley on
I found an issue with OpenACS 5.10.1 where if I attempt to edit an existing locale it gives me an "Invalid input" error back.

Below is one way to resolve the issue that I've come up with but there is likely another better way.

diff --git a/packages/acs-lang/www/admin/locale-edit.tcl b/packages/acs-lang/www/admin/locale-edit.tcl
index 603d2199..edb0372a 100644
--- a/packages/acs-lang/www/admin/locale-edit.tcl
+++ b/packages/acs-lang/www/admin/locale-edit.tcl
@@ -64,15 +64,15 @@ catch {
# but not so in ACS-LANG - here you must provide the two-digit ISO-code

element create locale_editing locale -label "Locale" \
- -datatype text -widget inform
+ -datatype text -widget text -html [list readonly readonly]

-element create locale_editing label -label "Label" -datatype text -widget inform
+element create locale_editing label -label "Label" -datatype text -widget text -html [list readonly readonly]

element create locale_editing country -label "Country" \
- -datatype text -widget inform
+ -datatype text -widget text -html [list readonly readonly ]

element create locale_editing language -label "Language" \
- -datatype text -widget inform
+ -datatype text -widget text -html [list readonly readonly ]

if { [info exists list_nls_language] } {
element create locale_editing nls_language -label "NLS Language" \

Collapse
2: Re: Error editing a locale (response to 1)
Posted by Gustaf Neumann on
Hi Jonathan,

Strangely, i don't get these errors (PostgreSQL, openacs_bootstrap5 theme). What DB and theme are you using?

The local-edit page is not great code. i just fixed a noisy “table not found” error message on PostgreSQL, but this was just a false-alaram error visible in the logs.

all the best
-g

Collapse
3: Re: Error editing a locale (response to 2)
Posted by Jonathan Kelley on
Sorry for the delayed response as I didn't get notified. I am using Postgres16 and the openacs_bootstrap5 theme

Thanks.