Closed TheROPFather closed 6 months ago
After doing some more investigating today I've discovered that this only appears to happen when the conversion and responsive image generation is on a queue.
When I use
public function registerMediaCollections(Media $media = null): void
{
$this->addMediaCollection('banner')->singleFile()
->useDisk('images')
->useFallbackUrl(config('urls.frontend') . '/images/pack-fallback.png');
}
/**
* @throws InvalidManipulation
*/
public function registerMediaConversions(Media $media = null): void
{
$this->addMediaConversion('optimized')
->format(Manipulations::FORMAT_WEBP)
->nonQueued()
->withResponsiveImages();
}
Note the nonQueued()
the error does not happen and everything is generated as it should be.
I happened to experience this bug myself and it was resolved after upgrading to v11. As this doesn't seem to be a problem in the latest version I'm going to close the issue for now. If anyone does happen to see this failing on v11 feel free to open an other issue so we can investigate.
I've been having this problem for a long time now.
This is what is shown in Horizon when investigating why the task failed
Stack trace shown below
It appears to be complaining about the 7mai.png image.
The definition of the conversion is here
The webp file does get created, however the responsive images do not. The image is definitely a png, as evidenced here.
This is not the only image this happens with for me, this is just one example. I can provide hundreds more if needed.
I'm on the following versions
And PHP 8.2.13.
I hope this is enough information, if not please just ask and I will do my best to accommodate.