Comments (8)
bump, same error here
using Desktop (please complete the following information):
OS: linux arch latest
Browser: firefox
Version: Last Version
Additional context
Ruby version: 3.0.0
Rails version: 7.1.3
The issue presents a problem in a Rails view where the image_tag helper is not handling the absence of a specified size gracefully. It seems to be an oversight in either the application's code or a library that the application is using.
Comments:
I have to say that I have a lot of errors in the generated files right after installation (more then 190+) using eclipse ide latest version
from solidus.
Alright this issue resolved itself once I updated ruby to 3.3.0 with rvm @SamuelBonilla
from solidus.
Hey @SamuelBonilla I had a quick look at this issue and I believe what you describe is more related to the image_processing
gem and the underlying VIPS library: https://github.com/janko/image_processing/blob/c20d147765a064840d4cad0ff6b7ebcfe65eeaa8/lib/image_processing/vips.rb#L153
from solidus.
bump, same problem after fresh installation
from solidus.
Same problem here. Ruby 3.3.0. Looks like seeded demo product images causes this failure. With all of the demo products removed and new products added everything works fine. Did not dig deeper yet to see what's wrong - the images itself are loading fine and are visible in admin backend.
from solidus.
This is weird ..
inside file app/components/image_component.rb I just replaced the size variable with constant when I was debugging.
image_tag image.url(size), default_options.merge(options)
To
image_tag image.url(:small), default_options.merge(options)
And everything worked fine !!
from solidus.
@nvandoorn The height/width should be coming from our code though, right? That's why @asfour75's change fixes it.
from solidus.
@nvandoorn The height/width should be coming from our code though, right? That's why @asfour75's change fixes it.
After further debugging .. the size variable passed to image_component.rb:
:small, "product", :full
While this line:
image_tag image.url(size), default_options.merge(options)
size variable can accept only:
(mini: '48x48>', small: '100x100>', product: '240x240>', large: '600x600)
So I changed any value with 'big' -> 'product' and 'full' -> 'large'
Maybe the error message was misleading ..
from solidus.
Related Issues (20)
- Sandbox does not work in v4.3 and main HOT 7
- Scope Admin Orders to Store HOT 2
- [Admin] products/index/variants/index
- [admin] Consider committing the built tailwind css file into the admin repo
- Backend: use of cdn causes remixicon.symbol.svg to not download due to its being an svg used with <use> tag
- SQL error while searching by variant name in stock management view HOT 3
- Cant install
- [Backend] Backordered items may become on hand when splitting shipment
- Nil variant shipping category not handled properly in form
- The action 'show' could not be found for Spree::Admin::PropertiesController
- Disaster Recovery Guidance
- Production Images Break
- [Admin][Settings][Shipments] Introduce shipping category creation and modification capability
- Read/write separation
- [Admin][UI][Bulk actions] Require confirmation before completing bulk deletes HOT 2
- undefined method `total_pages' for 30:Integer for zones in solidus 4.3.0
- [Admin] - 2nd Option Type is lost, can't add to existing product HOT 1
- Deprecation warnings don't raise when they should HOT 1
- Solidus demo app doesn't work (styles are not loading?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidus.