Index: openacs-4/packages/acs-tcl/tcl/site-nodes-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/site-nodes-procs.tcl,v diff -u -r1.139 -r1.140 --- openacs-4/packages/acs-tcl/tcl/site-nodes-procs.tcl 28 Nov 2018 22:43:12 -0000 1.139 +++ openacs-4/packages/acs-tcl/tcl/site-nodes-procs.tcl 28 Nov 2018 22:50:19 -0000 1.140 @@ -1688,8 +1688,11 @@ cache in case we have a root site node. } { #ns_log notice "site_node::init_cache" - set root_node_id [::db_string get_root_node_id {} -default {}] - if { $root_node_id ne "" } { + if {[db_0or1row get_root_node { + select node_id as root_node_id + from site_nodes + where parent_id is null + }]} { # # If we are called during the *-init procs, the database # interface might not be initialized yet. However, in this