Forum OpenACS Development: Error uploading portrait: invalid command name "uni_procs::masquerade_name"

I get the following error after submiting the form to upload a user portrait on OACS 5.1.5:


invalid command name "uni_procs::masquerade_name"
while executing
"uni_procs::masquerade_name -name $tmp_filename -masqslash "f""
("lob" arm line 3)
invoked from within
"switch $storage_type {
file {
set filename [cr_create_content_file $item_id $revision_id $tmp_filename]
db..."
("uplevel" body line 62)
invoked from within
"uplevel 1 $transaction_code "
(procedure "db_transaction" line 1)
invoked from within

... many lines ommitted ...

Could't find anything anywhere about this. I can track the problem to:

packages/acs-content-repository/tcl/revision-procs.tcl

but that's about as far as I get, given my OpenACS novice status. I'd be happy to submit a patch for this; any hints welcome.

Hi,
I am getting the same error while trying to upload a portrait.I am using e-LANE distribution on RHEL4.
I have no idea as to what error this is?
Could you please help me out?
Can somebody please help........
This looks like it was a problem on the oacs-5-1 branch which was fixed in May 2005:

http://cvs.openacs.org/cvs/openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl?r1=1.12.2.10&r2=1.12.2.11

Applying that diff should fix that error...

Hi,
I tried modifying the file as said .Now i am getting these errors.Plaese help.

can't read "tmp_newname": no such variable
while executing
"list $tmp_newname"
("lob" arm line 8)
invoked from within
"switch $storage_type {
file {
set filename [cr_create_content_file $item_id $revision_id $tmp_filename]
db..."
("uplevel" body line 62)
invoked from within
"uplevel 1 $transaction_code "
(procedure "db_transaction" line 1)
invoked from within
"db_transaction {

if { [empty_string_p [cr_registered_type_for_mime_type $mime_type]] } {
db_dml mime_type_insert ""
d..."
(procedure "cr_import_content" line 35)
invoked from within
"cr_import_content -image_only -item_id $item_id -storage_type lob -creation_user [ad_conn user_id] -creation_ip [ad_conn peeraddr] [ad_conn pack..."
invoked from within
"set revision_id [cr_import_content -image_only -item_id $item_id -storage_type lob -creation_user [ad_conn user_id] -creation_ip [ad_conn peeradd..."
("uplevel" body line 90)
invoked from within
"uplevel {
ad_page_contract {
adds (or replaces) a user's portrait

@author mailto:philg@mit.edu
@creation-date 26 Sept 1999
@cvs-id $I..."
(procedure "code::tcl::/var/lib/aolserver/e_learning_oracle/packages/acs..." 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 [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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..."

Thank You so much.It's working now.
Hi,
Thank You once again.
Could you please tell me what configurations need to be done to send and receive mails from my server to Outlook express?I also need help regarding customizing my login page by adding a gif image.How do i do this?I have no idea on TCL programming.
I've given in dotlrn-master.adp .Nothing except a cross mark is getting displayed.I have posted this in the forum but no one seems to reply.
Can you please help me out?
To send email, you need to just make sure sendmail binary is installed and in the path for the openacs user.

CHeck the parameter calld SendmailBin under Acs Mail Lite from /acs-admin/ under Parameters.

Also check if you have a MailHost parameter in the config.tcl file and that it points to a mail server that can forward mail for your openacs server.

If there is an error sending mail from your system there should be something in the error logs that tells you what went wrong.

I have installed QMAIL in my system.I need to send and receive mails from Outlook express.Could you please tell me the steps required or any document regarding configuration for sending bulkmail and to send notification to newly registered users.I've set the mailhost parameter to SMTP.
Thanks