Forum .LRN Q&A: Failures in package assessment

Collapse
Posted by Antonio Mejias on
Hello to every, Dave specially.

I'm validating in HTML Strict the package assessment and I have found two failures.

First Failure
- I have created a 'assessment' without questions and I go to menu 'questions'. In 'item' box I click in 'add a new question' and I see this failure. (copy$paste the code)


There was a server error processing your request. We apologize.

Take me back where I was (before the error)

invalid command name "template::head:add_style"
while executing
"template::head:add_style -style ".form-label {text-align:left;} .form-label label {font-weight:bold;}""
("uplevel" body line 33)
invoked from within
"uplevel {
ad_page_contract {
Form to add an item.

@author Timo Hentschel (mailto:timo@timohentschel.de)
@cvs-id $Id:
} {
assessment_i..."
(procedure "code::tcl::/home/cyfuss/dotlrn/packages/assessment/www/asm-a..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 6)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

The second failure is in 'Results' inside to 'View' Box and I see this failure (copy&paste code)


There was a server error processing your request. We apologize.

Take me back where I was (before the error)

Query did not return any rows.
while executing
"db_1row find_assessment {}"
("uplevel" body line 16)
invoked from within
"uplevel {
ad_page_contract {

Show the result of a session and provide links to edit the points.

@author mailto:timo@timohentschel.de
@da..."
(procedure "code::tcl::/home/cyfuss/dotlrn/packages/assessment/www/asm-a..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 6)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

Collapse
Posted by Emmanuelle Raffenne on
Hi Antonio,

Regarding the first error, there's a typo in the call to "template::head:add_style". It should be "template::head::add_style" (2 colons before add_style not only 1).

Collapse
Posted by Antonio Mejias on
OK, I have modified this failure but I have found another.

When I import a zip file without to specified a file I see (copy&paste)


There was a server error processing your request. We apologize.

Take me back where I was (before the error)

no files matched glob pattern "*{.xml}"
while executing
"glob -directory $tmpdirectory *{.xml} "
invoked from within
"foreach file_i [ glob -directory $tmpdirectory *{.xml} ] {
as::qti::parse_qti_xml $file_i
}"
("uplevel" body line 26)
invoked from within
"uplevel {
ad_page_contract {
@author mailto:alvaro@it.uc3m.es
@creation-date 2004-04-14
} {
zipfile
{zipfile.tmpfile}
} -validate {
} ..."
(procedure "code::tcl::/home/cyfuss/dotlrn/packages/assessment/www/asm-a..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 6)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

--
regards
Antonio

Collapse
Posted by Antonio Mejias on
I have found more failure:

In 'Admin' the 'email options' when I go to 'Send bulk mail regarding this survey'

this is the error:

There was a server error processing your request. We apologize.

Take me back where I was (before the error)

can't read "to": no such variable
while executing
"subst {$to}"
("uplevel" body line 1)
invoked from within
"uplevel [list subst [lindex $extra_arg 1]]"
(procedure "ad_form" line 353)
invoked from within
"ad_form -extend -name send-mail -form {
{to:text(radio) {options {
{"[_ assessment.lt_Everyone_eligible_to_]" "all"}
..."
invoked from within
"if {[llength $session_id]} {
if {[llength $session_id] == 1} {
set session_id [split [lindex $session_id 0]]
}
set options [db_list_of_li..."
("uplevel" body line 39)
invoked from within
"uplevel {
# packages/assessment/www/asm-admin/send-mail-to.tcl

ad_page_contract {

Choose who to send mail to

@author Dave Ba..."
(procedure "code::tcl::/home/cyfuss/dotlrn/packages/assessment/www/asm-a..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 6)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

--
Regards

Antonio

Collapse
Posted by Antonio Mejias on
Hi everyone,

I have found a fail in 'assessment', in 'lib/assessment.tcl'

this is the error: Error in include template "/home/cyfuss/dotlrn/packages/assessment/lib/assessment": Invalid switch: "-href="/resources/assessment/crbForms.css""

Regards

Antonio

Collapse
Posted by Antonio Mejias on
ok, I have resolved it. I deleted '='.

regards
Antonio

Collapse
Posted by Gustaf Neumann on
Which version are you using?

i just checked assessment/lib/assesment* in cvs head and in dotlrn-2.3.1, both don't refer to anything with "crb" in it.

There is however a reference to crbForms.css from assessment-section-submit.adp:

%fgrep -R crb assessment
assessment/www/assessment-section-submit.adp:<property name="header_stuff"><link rel="stylesheet" type="text/css" href="/resources/assessment/crbForms.css" media="all"></property>

But there is no crbForm.css in assessment/www/resources/ .
Looks, as this escaped some developer....

-gustaf neumann

Collapse
Posted by Antonio Mejias on
Oh no, This failure is in another file. This failure is in '../assessment/lib/assessment.tcl'' but It's work ok now.

(I use develop version)

Collapse
Posted by Gustaf Neumann on
ah, it *was* in cvs HEAD, recently introduced during the new master-template rewrite. Found and fixed three more occurrences of the same bug in assessment. Thanks for noting this.

-gustaf

PS: Be aware, the CVS HEAD is a moving target.