Faulty img tag SRC values leave errors but no message

Created on 25 October 2022, about 2 years ago
Updated 5 April 2024, 9 months ago

Problem/Motivation

Running a migration I hit this error:

   9616/150452 [=>--------------------------]   6% [warning] Trying to access array offset on value of type bool ImgTagToEmbedFilter.php:138
 [warning] Trying to access array offset on value of type bool ImgTagToEmbedFilter.php:138

This points to the second line of the following code:

      $url_parts = parse_url($src);
      $path = $url_parts['path'];

Steps to reproduce

TBD

Proposed resolution

Log an error if the image tag cannot be properly extracted.

Remaining tasks

API changes

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024