Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -r1.472.2.20 -r1.472.2.21 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 2 Sep 2014 09:33:49 -0000 1.472.2.20 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 3 Sep 2014 12:25:50 -0000 1.472.2.21 @@ -2991,9 +2991,17 @@ #my msg "[my name] [my info class]" if {[my exists page_template]} { set p [::xo::db::CrClass get_instance_from_db -item_id [my page_template]] - # The Form might come from a different package type (e.g. a workflow) - # make sure, the source package is available - ::xo::Package require [$p package_id] + # + # The Form might come from a different package type (e.g. a + # workflow) make sure, the source package is available. + # + # Note, that global pages (site_wide_pages) might not belong to + # a package and have therefore an empty package_id. + # + set package_id [$p package_id] + if {$package_id ne ""} { + ::xo::Package require $package_id + } } #my array set __ia [my instance_attributes] next