The types appear to be defined correctly
openacs.org=# select * from acs_object_type_supertype_map where ancestor_type like '::xowiki%';
object_type | ancestor_type
------------------------+---------------------
::xowiki::PlainPage | ::xowiki::Page
::xowiki::PageTemplate | ::xowiki::Page
::xowiki::PageInstance | ::xowiki::Page
::xowiki::Object | ::xowiki::Page
::xowiki::Object | ::xowiki::PlainPage
Looks ok to me.
The question is, why does the command to set package_id fail. How can we track that down? It would be useful to understand how to debug xotcl code, and this is a good opportunity :)
It appears that pacakge_id should be an instance var of the parent object of a certain page that already exists
the error when you try to view any existing page
can't read "package_id": no such variable
::363021 ::xotcl::Object->set
invoked from within
"$parent_id set package_id"
(procedure "render" line 8)
::365799 ::xowiki::Page->render
invoked from within
"$page render"
invoked from within
"set content [$page render]"
("uplevel" body line 30)
invoked from within
"uplevel {
ad_page_contract {
view a wiki item
This goes back to the xotcl::Object so its not just part of xowiki as far as I can tell.
I changed it to just query directly and it works fine for viewing a page. I don't know if this is related to any other issue or not.