Skip to content

Getting domdocument::loadHTML(): Argument #1 ($source) must not be empty when button is empty #315

@Skatox

Description

@Skatox

If you do:

  1. Add a regular Gutenberg button without text, like dragging it from the left panel.
  2. Leave the button there and publish a new page.
  3. Query the page with Faust.js and get the Button attributes.

You'll get an internal server error saying that domdocument::loadHTML(): Argument #1 ($source) must not be empty when the button is empty. If you add some text to the button, the problem will disappear.

This is a problem if you rebuild multiple pages and one of them has an information skeleton without any values. It won't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    merged: pending releaseThis has been merged into main but not yet released

    Type

    No type

    Projects

    Status

    ✅ Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions