Hello!
After getting OpenACS to work properly I added several subsites and wanted to switch the subsite to the main site. I did it by going to acs-admin -> subsites -> Main Site -> Administration -> Edit and changing the URL there.
Now, every URL returns the following error:
Database operation "0or1row" failed (exception ERROR, "ERROR: NO DATA FOUND
CONTEXT: PL/pgSQL function site_node__find_pattern(integer) line 8 at RAISE
PL/pgSQL function site_node__node_id(character varying,integer) line 58 at RETURN
")
ERROR: NO DATA FOUND
CONTEXT: PL/pgSQL function site_node__find_pattern(integer) line 8 at RAISE
PL/pgSQL function site_node__node_id(character varying,integer) line 58 at RETURN
SQL:
select site_node__node_id('/', null)
while executing
"ns_pg_bind 0or1row $db $sql"
("uplevel" body line 3)
invoked from within
"uplevel 1 $code_block "
invoked from within
"db_with_handle -dbn $dbn db {
#ns_log notice "--sql=$sql"
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}"
(procedure "node_id" line 16)
::xo::db::sql::site_node->node_id
invoked from within
"next "
invoked from within
"ns_cache_eval -- site_nodes_id_cache id-/ { next }"
("uplevel" body line 1)
::acs::site_nodes_id_cache ::nx::Object->uplevel
invoked from within
":uplevel [list ns_cache_eval {*}$expires_flag -- [:cache_name $partition_key] $key $command]"
(procedure "eval" line 16)
invoked from within
"acs::site_nodes_id_cache eval id-$url { next }"
(procedure ":get_node_id" line 6)
invoked from within
"next"
(procedure ":get_node_id" line 33)
invoked from within
":get_node_id -url $url"
(procedure "get" line 14)
invoked from within
"::xo::site_node get -url $url -node_id $node_id"
(procedure "::nsf::procs::site_node::get" line 2)
invoked from within
"site_node::get -url $url"
(procedure "::nsf::procs::site_node::closest_ancestor_package" line 14)
invoked from within
"site_node::closest_ancestor_package -node_id [ad_conn node_id] -package_key [subsite::package_keys] -include_self -element "node_id""
(procedure "ad_conn" line 131)
invoked from within
"ad_conn subsite_node_id"
(procedure "ad_conn" line 135)
invoked from within
"ad_conn subsite_id"
(procedure ":get_context" line 10)
invoked from within
":get_context"
(procedure ":check" line 4)
invoked from within
":check"
(procedure "postauth" line 4)
invoked from within
"{*}$cmd"
("::try" body line 2)
How can this be fixed?
Thank you in advance,
Ann