Warning: A non-numeric value encountered in Drupal\video_filter\Plugin\Filter\VideoFilter->process() (line 153 of modules/contrib/video_filter/src/Plugin/Filter/VideoFilter.php)

Created on 19 December 2017, almost 7 years ago
Updated 15 February 2023, almost 2 years ago

I started getting the following warning recently with the Brightcove shortcode.

Warning: A non-numeric value encountered in Drupal\video_filter\Plugin\Filter\VideoFilter->process() (line 153 of modules/contrib/video_filter/src/Plugin/Filter/VideoFilter.php)

Happens with shortcodes like:

[video:https://players.brightcove.net/1094142158001/default_default/index.html?videoId=5429110862001]

If we use is_numeric near line 153 when doing scale operations it seems to fix the issue with no rendering side effects.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024