Skip to content

[5.8.5]: Invalid field handle from content field on new install #17587

@white-lukas

Description

@white-lukas

What happened?

Description

When you have an existing project config, which has a content field block with field instances inside it, the install on a clean db fails with the message Invalid field handle.

When I remove the field instance (plain text field) or keep the existing field handle, the install finishes correctly.

Steps to reproduce

  1. create a content field block with a plain text and rename the handle of the plain text field
  2. install on a clean db
  3. error when applying pc, with msg Invalid field handle: headerTitle.

Expected behavior

Install finishes correctly

Craft CMS version

5.8.5

PHP version

8.3.22

Operating system and version

Ubuntu 24.04

Database type and version

mysql 8.0

Image driver and version

No response

Installed plugins and versions

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