Forum OpenACS Q&A: Ecommerce bug

Collapse
Posted by Luis Garcia on
I get the following bug every time I try to input a new product. If
somebody else has had the same problem, please let me know.

mkdir ("/web/greetingchecks/data/ecommerce/product/49") failed:  no
such file or directory while executing

"ns_mkdir $dir_path"


    (procedure "ec_assert_directory" line 12)

    invoked from within

"ec_assert_directory $subdirectory"


    ("uplevel" body line 159)

    invoked from within

"uplevel {

          # ecommerce/www/admin/products/add-2.tcl

ad_page_contract {

  Add a product.

  @author Eve Andersson (mailto:eveander@arsdigita.com)

  @cre..."

(procedure "code::tcl::/web/greetingchecks/packages/ecommerce/www/admi
n/..." 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..."

Collapse
2: Response to Ecommerce bug (response to 1)
Posted by Cynthia Kiser on
When you add a new product, the ecommerce system tries to make a subdirectory to store stuff like uploaded images and ?? (don't remember). I would bet that you don't have one of the parent directories of web/greetingchecks/data/ecommerce/product/49 - 49 is the product_id I would bet. Check your file system for existance of the web/greetingchecks/data/ecommerce/product directory - and check that the web server user can write to it. If I recall, you can relocate the set of directories using one of the parameters in the ecommerce section of the .ini config file (I am guessing here that you are using an ecommerce module from an ACS or OpenACS 3.x series).