Forum OpenACS Q&A: bboard apache

Collapse
Posted by Matthew Terenzio on
Hi folks,

I'm using the apache rpm's on red hat 6.2 and when I created a forum 
and tried to access /bboard I got this notice:

registered_proc blew up --- backtrace follows:
can't use empty string as operand of "||"
    while executing
"if { [bboard_pls_blade_installed_p] || 
[bboard_openacs_search_installed_p] } {
    set search_server [ad_parameter BounceQueriesTo site-wide-search 
""..."
    (file "/var/opt/www/localnot/www/bboard/index.tcl" line 88)
    invoked from within
"source $ad_conn(file)"
    (procedure "ad_handle_abstract_url" line 67)
    invoked from within
"ad_handle_abstract_url conn {}"can't use empty string as operand of 
"||"
    while executing
"if { [bboard_pls_blade_installed_p] || 
[bboard_openacs_search_installed_p] } {
    set search_server [ad_parameter BounceQueriesTo site-wide-search 
""..."
    (file "/var/opt/www/localnot/www/bboard/index.tcl" line 88)
    invoked from within
"source $ad_conn(file)"
    (procedure "ad_handle_abstract_url" line 67)
    invoked from within
"ad_handle_abstract_url conn {}"


I (taking a shot in the dark)tried typing /bboard/index.tcl but got 
the same. What is this message trying to tell me?
Collapse
2: Response to bboard apache (response to 1)
Posted by Cynthia Kiser on
The line about using apache RPMs has me confused but I will take a shot at explaining the tcl trace. The error message 'can't use empty string as operand of "||"' means that both arguements in the 'if a or b' statement that follows must return 0 or 1; one of them returned the empty string.

So what is that stuff: "if {[bboard_pls_blade_installed_p] || [bboard_openacs_search_installed_p] } {..."? Those are 2 tcl procs that tell you if you have the basic stuff for searching installed. Look in them up using the proceedure by proceedure documentation but I would hazard to guess that you do not have your parameters file completely set up and that you will find you need to go there to answer the question 'is openacs search installed?'

Collapse
3: Response to bboard apache (response to 1)
Posted by Robert Schlaff on
This happend to me before (but I wasn't running apache). I tried upgrading from 3.2.2 to 3.2.4 but didn't update my parameters file and one of those parameters ([bboard_pls_blade_installed_p] or
[bboard_openacs_search_installed_p] I forget which) was added in the newer release. This is one of the only parameters that changed in the upgraded parameters.tcl file. When I added the parameter in, everything was peachy.
Collapse
4: Response to bboard apache (response to 1)
Posted by Jimmy Yee on
So, I'm new to this and have this error too. You say you updated the parameters.tcl file. I don't find that file. Do you mean the ad.ini file? And if so, what exactly did you enter in and where to set the parameter? I'm sorry, the bug track lists this problem too, but the answer given assumes one is familiar with tcl. I am not yet.