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.

Command icon 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

mkhamash created an issue. See original summary.

mkhamash’s picture

Issue summary: View changes
StatusFileSize
new698 bytes

Small fix to for the error above.

mkhamash’s picture

Status: Active » Needs review

rahulrasgon made their first commit to this issue’s fork.

rahulrasgon’s picture

Assigned: mkhamash » Unassigned
Status: Needs review » Fixed

Commited to 1.0.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.