Skip to content

Removed media folder breaks whole page #534

Description

When the type "Folder" is used in a cb and the folder is removed in the fileadmin, the whole page (be editing and fe) breaks (500) because the folder cannot be found.

To Reproduce
Steps to reproduce the behavior:

  1. Add type "Folder" to a CB.
  2. Add a folder to the content element.
  3. Remove or rename the folder in the media module.
  4. Try to open the Layout module of the page with the content element. → error 500
  5. Try to open the fe of the page. → error 500

Expected behavior
The content element breaks and produces an error but not the whole page.

The ContentBlockDataDecorator should try to resolve the field and catch errors and provide them to the template.

TYPO3 Version
14.3.3

Content Blocks Version:
2.4.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions