Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We are getting the following error message:
Warning: Illegal string offset 'id' in Drupal\video_filter\Plugin\Filter\VideoFilter->process() (line 91 of modules/video_filter/src/Plugin/Filter/VideoFilter.php).
Video Input is as follows: [video:https://www.youtube.com/watch?v=iCvmsMzlF7o autoplay:1 provider:youtube]
Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#4 | 2794361-remove_warning-4.patch | 648 bytes | chishah92 |
Comments
Comment #2
sittard CreditAttribution: sittard commentedChanging line 91 to the following seems to fix the issue:
$video['codec']['id'] = $id;
Thanks.
Comment #3
chishah92 CreditAttribution: chishah92 at Blisstering Solutions commentedComment #4
chishah92 CreditAttribution: chishah92 at Blisstering Solutions commentedHere is the patch removing the error.
Thanks
~Chirag
Comment #5
BoobaaHad the same error at the same place, and the patch fixed it. Thanks!
Comment #7
DamienMcKennaCommitted. Thanks!
Comment #9
Holy Harmonica CreditAttribution: Holy Harmonica commentedI have Video Filter version: 8.x-1.0-alpha2 on WAMP Apache 2.433, PHP 7.1.16 , MySQL 5.5.60
I receive the "Illegal string offset 'id'" error. Would it be OK for me to apply the patch? I have never applied a patch before but believe I can after I study How to apply a patch to a contributed module - Beginner's version (Windows)
Comment #10
indigoxela CreditAttribution: indigoxela commentedAny updates on this issue? There seemed to be show stoppers for a next release. Is this still true?
Patch #4 still applies and still fixes the warning.
The latest release is more than two years old.
Is there anything, the community can do?
@Holy Harmonica: you probably found your solution, but for the records:
Then rebuild the cache.