Forum OpenACS Q&A: Error on images upload

Request notifications

Posted by Cinthia Santos on

I'm trying to upload individual photos on my photo-album, but i get de following error:

invalid command name "cr_create_content_file"
while executing
"cr_create_content_file -move $thumb_item_id $thumb_rev_id ${full_thumb_filename}"
(procedure "pa_load_images" line 119)
invoked from within
"pa_load_images -remove 1 -client_name $upload_file -description $description -story $story -caption $caption ${upload_file.tmpfile} $album_id $u..."
invoked from within
"set new_photo_ids [pa_load_images -remove 1 -client_name $upload_file -description $description -story $story -caption $caption ${"
("uplevel" body line 62)
invoked from within
"uplevel {
# /packages/photo-album/www/photo-add-2.tcl
ns_log Notice "Huh? here we are..."

I already have installed ImageMagick with the JPEG library package. Could anyone help me, please? I have no idea what could be happening.

Thank you.

2: Re: Error on images upload (response to 1)
Posted by Dave Bauer on
The command "cr_create_content_file" should be included in every copy of OpenACS.

It is located in packages/acs-content-repository/tcl/content-procs.tcl

First check that the procedure is defined in that file.

If not you'll need to figure out why your copy is different than the original OpenACS version and add the procedure back in or get a copy of the original OpenACS version of the file.