non well formed numeric value encountered in _video_filter_process() (line 251

Created on 12 July 2018, over 6 years ago
Updated 2 December 2024, about 1 month ago
Notice: A non well formed numeric value encountered in _video_filter_process() (line 251 of .../video_filter/video_filter.module).

If I make a video filter shortcode like [video:https://www.youtube.com/watch?v=S-wVRJfAG0s height:200px], then I get the notice above. When I cast the height variable in the code to be an integer, then I don't get the notice. Entering "px" after the numerical height makes sense to a lot of people, so I think the module ought to defensively take care of the fact users commonly enter videos like this.

I suggest converting the height and width values to be integers before doing any mathematical operations on them.

πŸ› Bug report
Status

Active

Version

3.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States afinnarn

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024