Problem/Motivation

When uploading video's via the D10 layout builder modal you get the a quit error like 'Oops, something went wrong. Check your browser's developer console for more details.'

Steps to reproduce

  1. Edit a page
  2. Add/edit block with media video
  3. Upload new video
  4. Use a link such as https://player.vimeo.com/progressive_redirect/playback/123456789/renditi...

Proposed resolution

ProviderPluginBase::getVideoId() is expected to return a string - it's being used by ProviderPluginBase::getName()
the implementation in Html5 class returns an array instead

Remaining tasks

Come up with a solution.
Quick fix is to implement Html5::getName() and

  • leave the name empty
  • use the first value of the array
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

reszli created an issue. See original summary.

reszli’s picture

Version: 2.0.1 » 2.0.x-dev

  • svendecabooter committed eac43112 on 2.0.x
    Issue #3393182 by reszli: TypeError: htmlspecialchars(): Argument #1 ($...

  • reszli committed 4cd20ba6 on 2.0.x
    Issue #3393182: TypeError: htmlspecialchars(): Argument #1 ($string)...
svendecabooter’s picture

Status: Active » Fixed
Issue tags: +DevDaysBurgas2024

Status: Fixed » Closed (fixed)

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