Problem/Motivation

When saving videos under the dev branch, it generates the following error:

Notice: Trying to access array offset on value of type null in /var/www/docroot/modules/contrib/video_embed_tiktok/src/Plugin/video_embed_field/Provider/Tiktok.php on line 52

Steps to reproduce

Install module, setup video field to enable TikTok URL support, then try to save a TikTok video. Error appears.

Proposed resolution

Just switch the code to properly handle a class object instead of an array response. Eazy peazy.

Remaining tasks

None, I will attach a patch to this ticket.

User interface changes

None, enjoy the fix.

API changes

None

Data model changes

None

Comments

pthurmond created an issue. See original summary.

patrick.thurmond@gmail.com’s picture

StatusFileSize
new1.03 KB

Here is my patch.

kaszarobert’s picture

Priority: Normal » Major
Status: Active » Reviewed & tested by the community

I can confirm, patch #2 works. I'm raising priority because the thumbnail generating is broken in the module right now, so functionality is missing.
Can you put out a new release with it?

rahulrasgon’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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