Skip to content

[4.x]: Deleting Sites and Site-Group throws an "Undefined array key 2" error, when trying to open an entry. #14373

@hhentschel

Description

@hhentschel

What happened?

Description

I updated to latest version (4.7.2.1) and deleted some sites and one site group I don't need anymore.
I also changed site name handles.
After that, I cannot open entries in the control panel. Seems that Site ID are mixed up or something.
It gives a php error: Undefined array key 2

Steps to reproduce

  1. Deleting Site and changing site handle names

I tried to resave entries via cli but get the same error there.

Craft CMS version

4.7.2.1

PHP version

8.1.27

Operating system and version

MacOS X 13.21.1

Database type and version

MariaDB 10.6.16

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.0-62)

Installed plugins and versions

CKEditor | 3.6.0
CP Field Inspect | 1.4.4
Expanded Singles | 2.0.5
ImageOptimize | 4.0.5
Image Resizer | 3.0.9
Neo | 4.0.2
QRCode | 2.1.0
SEOmatic | 4.0.37
Twigpack | 4.0.0-beta.4

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