Forum OpenACS Q&A: Error adding item in E-Commerce

Collapse
Posted by Nick Grossman on
I just installed E-commerce on my 5.1 site. Everything was going smoothly until I tried to add a test product, and got this error message:

mkdir ("/var/lib/aolserver/service0/ec-data/product/70") failed: no such file or directory
while executing
"ns_mkdir $dir_path"
(procedure "ec_assert_directory" line 14)
invoked from within

and so on...

Any suggestions? Anyone with experience using E-commerce? Thanks,

Collapse
Posted by Janine Ohmer on
It has been a long time since I last did a fresh e-commerce install but I think you have to create the ec-data directory by hand, and of course make sure that the user the site is running as can write to it.
Collapse
Posted by Nick Grossman on
Thanks Janine, that did it.
Collapse
Posted by Nick Grossman on
Still having trouble....

Now that adding products works, I'm having trouble with images. When I try to add an item that has a picture, I get:

====
We had a problem with your input:

I am sorry, I could not find ImageMagick's convert utility for image thumbnail creation. Please reconfigure this subsystem before uploading
====

Does anyone know how to fix this? Thanks,

Collapse
Posted by Janine Ohmer on
If this is on the PPS server, convert is in /usr/bin. I think there's a package parameter for that and maybe it needs to be edited.
Collapse
Posted by Janine Ohmer on
Forgot the second half of my reply - if it's on a different server then you might need to install Imagemagick. That's documented in the install docs somewhere.
Collapse
Posted by Nick Grossman on
Great - that did it. It's not in PPS - this is for another project i'm working on, hosted at acorn. Thanks again for the help.