Forum .LRN Q&A: Re: dotLRN class attendance

Collapse
Posted by Al Guyer on
Thank you very much. I was able to install dotlrn-attendance, add the applet to a class, and add an event, or session.

But, when I click the "attendance" link:
http://localhost/dotlrn/classes/dep01/dep01.sub01/class01/attendance/admin/mark?item_id=3427&return_url=/dotlrn/classes/dep01/dep01.sub01/class01/one-community-admin?

I received the server error below. It looks like I am missing another applett that has additional user info?

Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR: Relation "person_info" does not exist

SQL: select allergies from person_info where person_id =1958
while executing
"ns_pg_bind 0or1row nsdb0 {select allergies from person_info where person_id =1958}"
("uplevel" body line 1)
invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql]"
("postgresql" arm line 2)
invoked from within
"switch $driverkey {
oracle {
return [uplevel $ulevel [list ns_ora $type $db $sql] $args]
}
..."
invoked from within
"db_exec 0or1row $db $full_name $sql"
invoked from within
"set selection [db_exec 0or1row $db $full_name $sql]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $code_block "
invoked from within
"db_with_handle -dbn $dbn db {
set selection [db_exec 0or1row $db $full_name $sql]
}"
(procedure "db_string" line 8)
invoked from within
"db_string "get_medical_issues" "select allergies from person_info where person_id =[ns_set get $user user_id]" -default """
("foreach" body line 2)
invoked from within
"foreach user $users {
set medical_needs [db_string "get_medical_issues" "select allergies from person_info where person_id =[ns_set get $user user_id..."
("uplevel" body line 64)
invoked from within
"uplevel {
ad_page_contract {

Mark attendance for a given attendance task

@author mailto:hamilton.chua@gmail.com
@creation-date May ..."
(procedure "code::tcl::/var/www/oacs/packages/attendance/www/admin/mark" 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 "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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..."