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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_reference_error-3227445-1.patch | 1.03 KB | patrick.thurmond@gmail.com |
Comments
Comment #2
patrick.thurmond@gmail.comHere is my patch.
Comment #3
kaszarobertI 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?
Comment #4
rahulrasgon commentedFixed as a part of https://www.drupal.org/project/video_embed_tiktok/issues/3276183#comment...
Thanks