Forum OpenACS Q&A: xowiki: Error when creating PageInstance

I'm following the xowiki docs, and creating a PageTemplate and a PageInstance. The PageTemplate is being created without any problem. The PageInstance with the previously created PageTemplate, too, but I get an error when trying to render it:

can't read "package_id": no such variable
    while executing
"$package_id get_parameter WidgetSpecs"
    (procedure "widget_spec_from_folder_object" line 5)
    ::50328 ::xowiki::PageInstance->widget_spec_from_folder_object
    invoked from within
"my widget_spec_from_folder_object $name [$page_template set name]"
    (procedure "get_field_type" line 5)
    ::50328 ::xowiki::PageInstance->get_field_type
    invoked from within
"my get_field_type $var text"
    (procedure "adp_subst" line 12)
    ::50328 ::xowiki::PageInstance->adp_subst
    invoked from within
"my adp_subst $html"
    (procedure "render_content" line 4)
    ::50328 ::xowiki::PageInstance->render_content
    invoked from within
"my render_content"
    (procedure "render" line 27)
    ::50328 ::xowiki::Page->render
    invoked from within
"my render"
    (procedure "view" line 87)
    ::50328 ::xowiki::Page->view
    invoked from within
"::50328 view"
    ("eval" body line 1)
    invoked from within
"eval $object $method $options"
    (procedure "call" line 7)
    ::50035 ::xowiki::Package->call
    invoked from within
"my call $page_or_package $method """
    (procedure "invoke" line 20)
    ::50035 ::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/projop/packages/xowiki/www/index.vuh" line 22)
    invoked from within
...

I don't quite understand what it means, because the package id should be there in the first place.

Any hints are much appreciated.

Michael

Collapse
Posted by Michael Martí Menzel on
Sorry, I forgot to mention that I have OpenACS 5.6, xotcl-core 0.117 and xowiki 0.135.

Thanks.

Collapse
Posted by Gustaf Neumann on
It was a bug on cvs head, and is fixed on cvs head. I would not recommend to use ::xowiki::Template and ::xowiki::PageInstance, but to use instead ::xowiki::Form and ::xowiki::FormPage, which are much more powerful (and used).
Collapse
Posted by Michael Martí Menzel on
Thanks for your help, Gustaf. I'll follow your suggestion regarding ::xokiwi::Form and ::xowiki::FormPage.