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?

CommentFileSizeAuthor
#4 2794361-remove_warning-4.patch648 byteschishah92
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sittard created an issue. See original summary.

sittard’s picture

Changing line 91 to the following seems to fix the issue:

$video['codec']['id'] = $id;

Thanks.

chishah92’s picture

Assigned: Unassigned » chishah92
chishah92’s picture

Status: Active » Needs review
FileSize
648 bytes

Here is the patch removing the error.

Thanks
~Chirag

Boobaa’s picture

Version: 8.x-1.x-dev » 8.x-1.0-alpha2
Assigned: chishah92 » Unassigned
Status: Needs review » Reviewed & tested by the community

Had the same error at the same place, and the patch fixed it. Thanks!

DamienMcKenna’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed
Parent issue: » #2854752: Plan for Video Filter 8.x-1.0 release

Committed. Thanks!

Status: Fixed » Closed (fixed)

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

Holy Harmonica’s picture

I 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)

indigoxela’s picture

Any 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:

cd ...path/to/modules/video_filter/
wget https://www.drupal.org/files/issues/2794361-remove_warning-4.patch
patch -p1 < 2794361-remove_warning-4.patch

Then rebuild the cache.