json_decode return objects rather than array.

Created on 20 April 2022, about 2 years ago
Updated 7 December 2023, 7 months ago

Problem/Motivation

Error 500: The website encountered an unexpected error. Please try again later.

Error: Cannot use object of type stdClass as array in Drupal\video_embed_tiktok\Plugin\video_embed_field\Provider\Tiktok->getRemoteThumbnailUrl() (line 51 of modules/contrib/video_embed_tiktok/src/Plugin/video_embed_field/Provider/Tiktok.php).
Drupal\video_embed_tiktok\Plugin\video_embed_field\Provider\Tiktok->getRemoteThumbnailUrl() (Line: 146)
Drupal\video_embed_field\ProviderPluginBase->downloadThumbnail() (Line: 130)
Drupal\video_embed_media\Plugin\media\Source\VideoEmbedField->getMetadata(Object, 'thumbnail_uri') (Line: 258)

Steps to reproduce

Add any TikTok URL will trigger the error.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇪United Arab Emirates mkhamash Dubai

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.69.0 2024