Forum OpenACS Q&A: error adding to photo-album

Collapse
Posted by Yves Goldberg on
new installation of latest stable version of oacs (462) and PostgreSQL 7.2.3 and AOLserver3.3oacs.

I get an error when uploading a picture in one of my albums.
Here's the message I get below the line.

Thanks for any help.

Yves.

==========================================
Request Error
couldn't execute "/usr/local/bin/identify": no such file or directory
    while executing
"exec [ad_parameter ImageMagickPath]/identify $filename"
    (procedure "pa_image_width_height" line 2)
    invoked from within
"pa_image_width_height $tmp_filename "base_width" "base_height""
    ("uplevel" body line 76)
    invoked from within
"uplevel {
          # /packages/photo-album/www/photo-add-2.tcl

ad_page_contract {
    adds a photo to an album

    @author mailto:bags@arsdigita.com
    @cre..."
    (procedure "code::tcl::/home/ygol/web/oacs/packages/photo-album/www/phot..." 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 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..."
=========================================================

Collapse
Posted by Robert Locke on
Latest stable release is actually 4.6.3. Yay! =) And you should probably be running PG 7.2.4. I believe the PG upgrade is very straightforward.

Regarding your problem, you need to have ImageMagick installed and have the ImageMagickPath package parameter set to the absolute path of the ImageMagick executables.

You should also consider using Jeff Davis' version which has various enhacements.

Collapse
Posted by Yves Goldberg on
Problem solved. Thank you Robert. The ImageMagick path was wrong.