Hi, I cannot upload images to products (in product...
# support
m
Hi, I cannot upload images to products (in production). I get this error message 'Server failed to process the image'. I tried updating Solidus to 3.2.4 but it still doesn't work. I see different errors in my server logs:
Copy code
LoadError (Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory.
but I checked and I already installed vips - or:
Copy code
ActionController::RoutingError (No route matches [POST] "/")
ActionController::RoutingError (No route matches [GET] "/.env"
Any idea what I'm doing wrong?
1
n
I had problems using vips with a LeWagon setup. After changing the following lines in spree.rb images started working again:
Copy code
config.image_attachment_module = 'Spree::Image::ActiveStorageAttachment'
  config.taxon_attachment_module = 'Spree::Taxon::ActiveStorageAttachment'
though admittedly I only tested it in development, not production
1
w
Are you sure you have
libvips
installed on your server?
1
m
Thank you! I indeed needed to reinstall the vips in my server and it works now. I already had these two lines in my spree.rb @Naoki Mi, but good to know Le Wagon setup can mess up with vips
👍 1
w
Good! 🙂