Hi there,
The ad_form to add photos in photo-album package breaks when the translation mode "TRN" dev's navbar is activated and there's at least one i18n message missing (not created yet).
The error points to the quantity of elements in one of the lists, of the ad_form elements. (too much elements here!! rsrs)
It happens because TRN messes up with the i18n format when it is active, such as "[_ photo-album.lt_OPTIONAL_Enhance_SEO_features]"
element create photo_upload caption -html { size 30 } \
-label "" -optional -help_text "[_ photo-album.lt_OPTIONAL_Enhance_SEO_features]" \
-datatype text \
-html "placeholder [_ photo-album.Caption]"
How would we fix that?
How would we make logs more accurate?
Best wishes,
[24/Oct/2017:09:53:10][2098.7f3a22b44700][-conn:evex:1-] Error: list must have an even number of elements
while executing
"array set attributes $element(html)"
(procedure "input" line 6)
invoked from within
"input file element $tag_attributes"
(procedure "template::widget::file" line 5)
invoked from within
"template::widget::$element(widget) element $tag_attributes"
(procedure "template::element::render" line 10)
invoked from within
"template::element::$command $form_id $element_id {*}$args"
(procedure "template::element" line 2)
invoked from within
"template::element render ${form:id} upload_file { } "
("uplevel" body line 30)
invoked from within
"uplevel $code"
(procedure "template::adp_eval" line 5)
invoked from within
"template::adp_eval code"
(procedure "template::form::generate" line 19)
invoked from within
"template::form::$command {*}$args"
(procedure "template::form" line 2)
invoked from within
"template::form generate photo_upload "
("uplevel" body line 74)
invoked from within
"uplevel {
set __adp_output {}; set __ad_conn_locale [ad_conn locale]
set __adp_master [template::util::master_to_file "[parameter::get -packa..."
(procedure "template::code::adp::/var/www/evex/packages/photo-album/www/..." line 2)
invoked from within