Forum .LRN Q&A: Error "invalid command name apm_log"

I've updated packages from cvs this morning. I've tried to install the ETP package from APM and got the error:
invalid command name "apm_log"
    while executing
"apm_log APMDebug $spec_files"
    ("uplevel" body line 57)
    invoked from within
"uplevel {
    	  ad_page_contract {

    Select, dependency check, install and enable packages.

    @author Bryan Quinn (bquinn@arsdigita.com)
    @c..."
    (procedure
"code::tcl::/web/dotlrn/packages/acs-admin/www/apm/packages-i..." 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 3)
    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 7)
    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([ad_conn url]) [ad_conn path_inf..."
Hope anyone can help.
Collapse
Posted by Arjun Sanyal on
apm_log is a part of my "log spew reduction campaign" described here:
https://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0005ko&topic_id=OpenACS%204%2e0%20Design&topic=12

this proc is defined at the bottom of  /packages/acs-tcl/tcl/apm-procs.tcl  Try this: restart your server and see if there are errors loading the this file.

Collapse
Posted by Emmanuelle Raffenne on
Thanks Arjun. It works fine.