Error: Call to a member function getVersion() on false in _brightcove_get_player_field()

Created on 2 September 2025, 9 days ago

Problem/Motivation

There cases in that the varible player over the function _brightcove_get_player_field can have value of False which ends up triggering the following error:
Error: Call to a member function getVersion() on false in _brightcove_get_player_field() (line 278 of /app/web/modules/contrib/brightcove/brightcove.module)./code>

This is because over that line (278 in the .module) we are only asking if the varibles is not null but since the values is false is not null and tries to use the function getVersion() creating a WSOD

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

🇨🇷Costa Rica rigoucr

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024