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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | jsondecode-return-objects-2770263-01.patch | 698 bytes | mkhamash |
Issue fork video_embed_tiktok-3276183
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mkhamash commentedSmall fix to for the error above.
Comment #4
mkhamash commentedComment #7
rahulrasgon commentedCommited to 1.0.x branch.