Index: openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl,v diff -u -N -r1.4 -r1.5 --- openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl 30 Jan 2018 19:41:34 -0000 1.4 +++ openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl 20 Feb 2018 09:15:06 -0000 1.5 @@ -217,6 +217,13 @@ Initialize an cookie-consent widget. } { + if {[ns_conn isconnected]} { + # + # If called in error cases, do nothing + # + return + } + if {$subsite_id eq ""} { set subsite_id [get_relevant_subsite] }