<p>I could solve the issue by myself.
Before deleting a site within the site settings (settings -&gt; sites)
i had to disable/deactive a site within the settings of a section, wait until all entries are automatically saved again and then delete a site.
Not sure if this is the expected behavoir, i think in the past i just deleted a site right away in the settings.</p>

CC BY-SA 4.0
2024-02-13T22:01:04.727Z
2024-02-13T22:01:04.727Z
Henrik
<p>I deleted some sites and also a site-group i did'nt need anymore and now getting a php warning &quot;Undefined array key 2&quot;
and i can not open entries anymore.
seems that group id (or site ids) or not found/correct anymore?</p>
<p>also, if i want to resave the entries, i get the same error in the terminal.
<a href="https://i.sstatic.net/zFUi4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zFUi4.png" alt="enter image description here" /></a>
<a href="https://i.sstatic.net/NK87M.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NK87M.png" alt="enter image description here" /></a></p>
<p>how can i fix that?</p>

<craft4>
after deleting some sites and sites-goup i get a php warning "Undefined array key 2"
# after deleting some sites and sites-goup i get a php warning "Undefined array key 2"

(Asked by: username_0 on 2024-02-13)

I deleted some sites and also a site-group i did'nt need anymore and now getting a php warning "Undefined array key 2"
and i can not open entries anymore.
seems that group id (or site ids) or not found/correct anymore?

also, if i want to resave the entries, i get the same error in the terminal.
[![enter image description here](https://i.sstatic.net/zFUi4.png)](https://i.sstatic.net/zFUi4.png)
[![enter image description here](https://i.sstatic.net/NK87M.png)](https://i.sstatic.net/NK87M.png)

how can i fix that?

**Tags:** craft4


---

## 1 answers

### Answer by username_0 on 2024-02-13. Score: 1

I could solve the issue by myself.
Before deleting a site within the site settings (settings -> sites)
i had to disable/deactive a site within the settings of a section, wait until all entries are automatically saved again and then delete a site.
Not sure if this is the expected behavoir, i think in the past i just deleted a site right away in the settings.


---

