Replies: 2 comments 2 replies
-
@shandybp the problem is that the width of the image is not null. Is the image which causes the problem maybe a .svg image which does not have a viewBox nor width and height attributes? A quickfix can be do add a default value: This is not perfect and can cause to wrong ratios and I would prefer to identify the source of problem. |
Beta Was this translation helpful? Give feedback.
-
@timohubois I am using the exact same "BlockImageText" component from your repo. I am wondering if my Capistrano deploy script is causing this, as I currently have to re-run composer from Flynt manually on the server, post-deploy- in order to generate the vendor directory. Can you take a look? The theme tasks start at |
Beta Was this translation helpful? Give feedback.
-
I deployed my Bedrock project to a staging server using Capistrano, and everything was fine except for Flynt. I'm getting this error:
Uncaught TypeError: Flynt\Utils\TwigExtensionPlaceholderImage::renderPlaceholderImage(): Argument #1 ($width) must be of type float, null given
Source of error: /flynt/Components/BlockImageText/index.twig on line 19
I'm using the same code as the repo.
Can someone please help? This is not broken on local.
Beta Was this translation helpful? Give feedback.
All reactions