Skip to content

[Bug] Fatal Error fetching Saved Blocks #195

@jessecowens

Description

@jessecowens

Describe the Bug.
In certain edge-cases, a fatal error is thrown fetching Saved Blocks and Used Blocks if some block has a null value for post_content.

[13-Jul-2021 16:05:04 UTC] PHP Fatal error:  Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /home/quacke5/public_html/wp-content/plugins/post-and-page-builder/includes/media/class-boldgrid-editor-layout.php:62

Describe the solution you'd like
Check to see if post_content is empty before parsing the gridblock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions