Forum OpenACS Development: Re: Search not work in glossary package

Collapse
Posted by Juan Lara Fernandez on
The glossary listed under Installing Valid Blinding. When you search any word that is in a glossary, you can see this error at end of the search result page.

HTTP/1.0 200 OK Content-Type: text/html; charset=iso-8859-1 MIME-Version: 1.0

Date: Mon, 20 Jan 2003 17:11:37 GMT Server: AOLserver/3.3.1+ad13
Content-Length:
2621 Connection: close
Request Error
can't read "datasource(content)": no such element in array
    while executing
"search_content_get txt $datasource(content) $datasource(mime)
$datasource(storage_type)"
    ("for" body line 6)
    invoked from within
"for { set __i 0 } { $__i < [expr $high - $low +1] } { incr __i } {
set object_id [lindex $result(ids) $__i]
set object_type [db_exec_plsql get_obje..."
    ("uplevel" body line 89)
    invoked from within
"uplevel {
      ad_page_contract {
    @author Neophytos Demetriou mailto:k2pts@cytanet.com.cy
    @creation-date September 01, 2001
    @cvs-id $Id: sear..."
    (procedure "code::tcl::/web/openacs-dev/packages/search/www/search" 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 3)
    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 7)
    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([ad_conn url]) [ad_conn path_inf..."

If you search a word that is not in any glossary, the search result page is correct and there is not any error.

Do your search package correctly work with glossary package?
Bye