'Recoverable fatal error: Argument 1 passed to brightcove_create_classes() must be an instance of Entity, boolean given' in in brightcove_create_classes()

Created on 18 June 2020, almost 5 years ago
Updated 23 January 2025, 3 months ago

Problem/Motivation

Sometimes the playlists may be removed but it's still referenced from somewhere. Then this line

$client = brightcove_client_load($bcid);

Makes $client === FALSE, so it's an boolean, not a Entity, so all crashes.

Proposed resolution

Check the result and return false if the client couldn't be loaded.

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: outdated

Version

6.0

Component

Code

Created by

🇪🇸Spain alvar0hurtad0 Cáceres

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.

Production build 0.71.5 2024