‘divide by zero’ error on vimeo videos
-
Hi Jamie – love the plugin, but recently i’ve started noticing that on Vimeo videos, it’s generating an error. did some digging about and found that force enabling the 16:9 aspect ratio, and removing line #716 from fluid-video-embeds.php – “$video_meta[‘aspect’] = $video->height / $video->width;” resolves the issue but does affect the display.
i’m assuming since it’s not doing the same on youtube videos that maybe a change to the Vimeo api might have triggered this? would it be possible to include a conditional statement to check if the value of either parameter is 0? currently we’re tweaking the plugin code to avoid this issue but it might be a good shout to include this in upcoming releases…
Thanks,
Pete
- The topic ‘‘divide by zero’ error on vimeo videos’ is closed to new replies.