Forum OpenACS Q&A: Error when registering new user

Collapse
Posted by Luis Garcia on

I get this error when trying to register a new user:

Error in include template "c:/openacs/openacs/packages/acs-subsite/lib/user-new": invalid command name "auth::self_registration"

I am working in Windows with OpenACS 5.1.X

Thanks!

Collapse
Posted by Luis Garcia on
So any ideas anyone?
Collapse
Posted by Torben Brosten on
Luis Garcia,

How does the aolserver log describe the error?

Collapse
Posted by Jade Rubick on
And what version exactly of OpenACS do you have?
Collapse
Posted by Luis Garcia on
Hi Guys,

I am using OpenACS version 5.1.1

This is the error from the server log:

[29/Jan/2005:05:09:31][3828.1968][-conn:openacs::0] Error: Error in include template "c:/openacs/openacs/packages/acs-subsite/lib/user-new": invalid command name "auth::self_registration" invalid command name "auth::self_registration" while executing "auth::self_registration" ("uplevel" body line 16) invoked from within "uplevel { # Expects parameters: # # self_register_p - Is the form for users who self register (1) or # for administrators who..." (procedure "code::tcl::c:/openacs/openacs/packages/acs-subsite/lib/user-..." 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 [template::util::url_to_file "/packages/acs-subsite/lib/user-new" "$__adp_stub"] [list email "[ad_quotehtml [lang::util::localize ..."

Collapse
Posted by Torben Brosten on
Luis,

The [3828.1968][-conn:openacs::0] identifies a process associated with a page request. If lines just above this error message include identical references, then they are part of the same process. You might find that there is more useful information just above the error message you posted. The information might include the location of the file making where the error originates from etc.

The error is stating that the procedure does not exist.

The api-doc at https://openacs.org/api-doc/proc-view?proc=auth%3a%3aself%5fregistration

states that it is located at: {serverroot}/packages/acs-authentication/tcl/authentication-procs.tcl

Is the procedure there in the system that has the error?

If so, you might check the package manager at your site's /acs-admin/apm/ to verify that all the code has been loaded, if you recently upgraded. Then restart the computer (or at least aolserver).

You might also see if this is the result of an existing bug, such as this:
https://openacs.org/bugtracker/openacs/bug?bug_number=1637

Collapse
Posted by Luis Garcia on

This is what I found right before the error message posted above. I took the precaution of checking the last entry in serverlog before requesting the login page where the "Register" new user link is. This is the result of the request for the login page. It seems it is looking for sedmail which is not in my system since I'm using Windows 2003 and I did not install that. The prior error posted was the result of clicking on the "Register" link:

[29/Jan/2005:11:57:01][5428.5852][-sched:13-] Notice: acs-mail-lite: about to load qmail queue

[29/Jan/2005:11:57:01][5428.5852][-sched:13-] Notice: queue dir = /new/*, no messages

[29/Jan/2005:11:57:15][5428.5672][-sched:12-] Error: couldn't execute "\usr\sbin\sendmail": no such file or directory couldn't execute "\usr\sbin\sendmail": no such file or directory while executing "open "|$sendmail" "w"" invoked from within "set f [open "|$sendmail" "w"]" ("uplevel" body line 14) invoked from within "uplevel $code" invoked from within "with_finally -code { set sendmail [list [bounce_sendmail] "-f[bounce_address -user_id $rcpt_id -package_id $package_id -message_id $message_id]"..." (procedure "sendmail" line 6) invoked from within "sendmail -from_addr $from_addr -sendlist $to_addr -msg $msg -valid_email_p $valid_email_p -message_id $message_id -package_id $package_id" (procedure "deliver_mail" line 55) invoked from within "deliver_mail -to_addr $to_addr -from_addr $from_addr -subject $subject -body $body -extraheaders $extra_headers -bcc $bcc -valid_email_p $valid_emai..." ("uplevel" body line 2) invoked from within "uplevel $code" invoked from within "with_finally -code { deliver_mail -to_addr $to_addr -from_addr $from_addr -subject $subject -body $body -extraheaders $extra_headers -bcc $bcc..." ("uplevel" body line 2) invoked from within "uplevel 1 $code_block " ("1" arm line 1) invoked from within "switch $errno { 0 { # TCL_OK } 1 { # TCL_ERROR ..." ("while" body line 20) invoked from within "while { [db_getrow $db $selection] } { incr counter if { [info exists array_val] } { unset array_val ..." ("uplevel" body line 5) invoked from within "uplevel 1 $code_block " invoked from within "db_with_handle -dbn $dbn db { set selection [db_exec select $db $full_statement_name $sql] set counter 0 while { [db_getrow $..." (procedure "db_foreach" line 36) invoked from within "db_foreach get_queued_messages {} { with_finally -code { deliver_mail -to_addr $to_addr -from_addr $from_addr -subject $subject -body $body -..." ("uplevel" body line 2) invoked from within "uplevel $code" invoked from within "with_finally -code { db_foreach get_queued_messages {} { with_finally -code { deliver_mail -to_addr $to_addr -from_addr $from_addr -subj..." (procedure "acs_mail_lite::sweeper" line 8) invoked from within "acs_mail_lite::sweeper" ("eval" body line 1) invoked from within "eval [concat [list $proc] $args]" (procedure "ad_run_scheduled_proc" line 42) invoked from within "ad_run_scheduled_proc {t f 60 acs_mail_lite::sweeper {} 1107020941 0 f}"

Collapse
Posted by Luis Garcia on
Torben,
I checked /acs-admin/apm/ and the package is there with all the procedures. Again, don't know if it is Sendmail messing around.
Thanks!