Forum OpenACS Development: Re: Res: xowiki 0.50

Collapse
2: Re: Res: xowiki 0.50 (response to 1)
Posted by Jose Agustin Lopez Bueno on
Hi, Gustaf!

I got the next error with xowiki 0.50 when one user
click in one url in Last Visited or Most popular list.
Can you get me a pointer?

Reagards,
Agustin

can't read "page_name(1)": no such variable
::xotcl::__#O ::xotcl::Object->set
invoked from within
"my set page_name($p)"
(procedure "page_name" line 2)
::xotcl::__#O ::xowiki::portlet::toc->page_name
invoked from within
"$i page_name [expr {$p + 1}]"
invoked from within
"if {$i ne "" && ![$page exists __is_book_page]} {
set p [$i position]
set count [$i count]
if {$count == 0} {set count 1}
set book_relpos [for..."
("uplevel" body line 7)
invoked from within
"uplevel {
set title [[$package_id folder_id] title]
#ns_log notice "--including_page= $__including_page, portlet=$portlet"
set toc [$page include_port..."
(procedure "code::tcl::/var/lib/aolserver/oacs_5_2_06_07/packages/xowiki..." 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 [template::util::url_to_file $src] $varlist"
(procedure "template::adp_include" line 8)
invoked from within
"template::adp_include $adp $__vars"
(procedure "return_page" line 29)
::19070134 ::xowiki::Package->return_page
invoked from within
"$package_id return_page -adp $template_file -variables {
name title item_id context header_stuff return_url
content footer package..."
(procedure "view" line 108)
::19355058 ::xowiki::Page->view
invoked from within
"$object $method"
(procedure "call" line 7)
::19070134 ::xowiki::Package->call
invoked from within
"my call $page $method"
(procedure "invoke" line 8)
::19070134 ::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 "/var/lib/aolserver/oacs_5_2_06_07/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 [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file -noredirect -nodirectory -extension_pattern ".vuh" "$root$prefix""
("uplevel" body line 3)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
ad_conn -set path_info [string range $path [expr [string length $prefix] - 1] end]
rp_serve_abstract_file -noredirect -n..."

Collapse
3: Re: Res: xowiki 0.50 (response to 2)
Posted by Gustaf Neumann on
On which page does this happen?

if this happens on an old index page, i would delete it (it will recreate itself from the prototype page).

openacs.org runs 0.50, the includelets work fine there.
See: https://openacs.org/xowiki/demo-includelets

Collapse
Posted by Jose Agustin Lopez Bueno on
Hi again!

The problem arise when the
template_file is set to "view-book"
and when it is trying to set the back - next
arrows.
Deleting index do not repair the problem.

???

Agustín

Collapse
Posted by Gustaf Neumann on
This means, there is no relation with "Last Visited" or "Most popular". Is there an earlier error message in the log from the same query? View-book works for me in several instances and on openacs.org (see e.g. http://www.openacs.org/test-doc/).

i have added two log statements to view-book.tcl in CVS head. Please update and see, what the lines starting with "--last includelet" and "--toc" say.

Collapse
Posted by Jose Agustin Lopez Bueno on
Hi Gustaf!

Here is the two log lines:

Notice: --last includelet = ::xotcl::__#E, class=::xowiki::portlet::toc 0, ::19070134 ::xowiki::Package->return_page (249ms, 19ms)
Notice: --toc count=0 size=0 indices=, ::19070134 ::xowiki::Package->return_page (249ms, 0ms)

Regards,
Agustin

Collapse
Posted by Gustaf Neumann on
Ah, you have a book without pages (count=0). Is this intentional? Anyhow, the updated version does not barf in such cases.

The problem does not look version specific for 0.50 to me. I can't see, how this worked before.