Forum OpenACS Q&A: xowiki: ns_cache error

Collapse
Posted by Nima Mazloumi on
When I add a new page or delete it I always get this error. though the actual action is done:

wrong # args: should be "ns_cache names cache"
while executing
"ns_cache names xowiki_cache link-*-$folder_id"
(procedure "update_references" line 17)
::xowiki::f1 ::xowiki::WikiForm->update_references
invoked from within
"my update_references"
(procedure "new_data" line 8)
::xowiki::f1 ::xowiki::WikiForm->new_data
invoked from within
"::xowiki::f1 new_data"
invoked from within
"set item_id [::xowiki::f1 new_data]"
("uplevel" body line 1)
invoked from within
"uplevel #$level $new_data"
("1" arm line 1)
invoked from within
"switch $errno {
0 {
# TCL_OK
}
1 {
# TCL_E..."
(procedure "ad_form" line 629)
invoked from within
"ad_form -extend -name [my name] -validate [my validate] -new_data $new_data -edit_data $edit_data -on_submit $on_submit -new_request $new_request -..."
(procedure "generate" line 45)
::xowiki::f1 ::Generic::Form->generate
invoked from within
"::xowiki::f1 generate"
(procedure "edit" line 61)
::xotcl::__#l ::xowiki::Page->edit
invoked from within
"$page edit -new true -autoname $autoname"
(procedure "edit-new" line 8)
::5837604 ::xowiki::Package->edit-new
invoked from within
"$object $method"
(procedure "call" line 7)
::5837604 ::xowiki::Package->call
invoked from within
"my call $page $method"
(procedure "invoke" line 12)
::5837604 ::xowiki::Package->invoke
invoked from within
"::$package_id invoke -method $m"
invoked from within
"::$package_id reply_to_user [::$package_id invoke -method $m]"
(file "/www/unima2_test/packages/xowiki/www/index.vuh" line 21)
invoked from within
"source [ad_conn file]"
(procedure "rp_handle_tcl_request" line 3)
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 $file"

Collapse
2: Re: xowiki: ns_cache error (response to 1)
Posted by Matthew Dodwell on
Nima,

this is probably due to the ns_cache version. The 'normal' openacs version doesn't accept the same number of parameters as the newer (1.5?) version that has been around for some while. There are quite a few posts about this on the forums (I've got caught by it!)

You could put a change in the xotcl code to call with the correct params for your version of ns_cache.

Cheers
Matthew

Collapse
3: Re: xowiki: ns_cache error (response to 1)
Posted by Nima Mazloumi on
Matthew, I am using nscache 1.5, xotcl 1.5.2, xotcl-core 0.56 and xowiki 0.60.

Here is what I found: https://openacs.org/forums/message-view?message_id=472833

Not sure what I need to do?

Collapse
4: Re: xowiki: ns_cache error (response to 3)
Posted by Gustaf Neumann on
The "names" option of ns_cache was added 4 years ago. When you install a recent version of ns_cache, "names" is a valid option. The error message above shows clearly that you have installed the old version.

See http://alice.wu-wien.ac.at:8000/xowiki-faq/#install-ns_cache

http://aolserver.cvs.sourceforge.net/aolserver/nscache/tclcache.c?view=log

Collapse
5: Re: xowiki: ns_cache error (response to 1)
Posted by Nima Mazloumi on
thank you