Forum OpenACS Q&A: Re: Delete Subsite Error

Collapse
8: Re: Delete Subsite Error (response to 1)
Posted by Dave Bauer on
You have unmounted the package instance, and removed the site node, but not the package instance.

A package key is never unique. You can have many instances of the same package "forums" or "file-storage".

If you need to put a package instance in another subsite unmounting it, and then re-mounting it in the new subsite is a good solution.

Create a new folder then click on mount next to the new folder and you will get a list on unmounted package instances you can put into that folder in the site-map.

Collapse
Posted by Iuri Sampaio on
Thanks,I understood that.
But what if i want to get rid of it. Because i believe that's why i'm getting the error message bellow, ins't it?

**************************
Error Deleting Instance
/ home / yabt / yabt / packages / dotlrn / www / dotlrn-master-kelp
The following error was returned:

Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR: update or delete on "acs_objects" violates foreign key constraint "acs_objects_context_id_fk" on "acs_objects"
DETAIL: Key (object_id)=(196538) is still referenced from table "acs_objects".

SQL:
select apm_package__delete('196538');
*****************************

And if i try to unmount it i get this error:
*****************************
Server Error
/ home / yabt / yabt / packages / dotlrn / www / dotlrn-master-kelp
There was a server error processing your request. We apologize.

Take me back where I was (before the error)
wrong # args: should be "apm_package_key_from_id_mem package_id"
while executing
"apm_package_key_from_id_mem "
("eval" body line 1)
invoked from within
"eval $script"
invoked from within
"ns_cache eval util_memoize $script {
list $current_time [eval $script]
}"
(procedure "util_memoize" line 20)
invoked from within
"util_memoize "apm_package_key_from_id_mem $package_id""
(procedure "apm_package_key_from_id" line 2)
invoked from within
"apm_package_key_from_id $package_id"
(procedure "site_node::unmount" line 4)
invoked from within
"site_node::unmount -node_id $node_id"
("uplevel" body line 16)
invoked from within
"uplevel {
# packages/acs-core-ui/www/admin/site-nodes/unmount.tcl

ad_page_contract {

@author mailto:rhs@mit.edu
@creation-date 2000-09-12
@cvs-..."
(procedure "code::tcl::/home/yabt/yabt/packages/acs-subsite/www/admin/si..." 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 [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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 "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."