DOMDocument::loadHTML() [domdocument.loadhtml]: Empty string supplied as input

Created on 22 January 2014, almost 11 years ago
Updated 14 September 2023, about 1 year ago

When using migrate to import nodes and this module is enabled, it breaks the import because of the following error:

DOMDocument::loadHTML() [domdocument.loadhtml]: Empty string supplied as input
File: sites/all/modules/contrib/ckeditor_link_file/includes/ckeditor_link_file.usage.inc, line 101

This is because it tries to load a NULL string.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands jurcello

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.

  • 🇵🇰Pakistan isalmanhaider

    I attempted solution #9, but it wasn't successful. This might be due to the issue being reopened because of PHP 8.x's strict type-checking. Now, using `count()` and `->loadHTML()` on null results in a "Empty string supplied as input" TypeError.

    However, I've attached a patch that resolved the issue on:

    - Drupal 7.98
    - PHP 8.1.19
    - ckeditor_link_file version "7.x-1.3"

Production build 0.71.5 2024