Template part has been deleted or is unavailable: header

Description:

not sure if this is a bug or only mishandling, maybe this is caused by some fatal errors when clicking on the color section selection square



, I destroyed somewhat my areas (header, Footer) as part of the page templates, getting this message when creating or editing a page:

Template part has been deleted or is unavailable: header

The areas still there, but not identified as header or footer, and the editing button on that item is missing

I don’t know how this happened, but I was able to assign header and footer to the templates again, and removed the non functioning ones from the templates

Despite I was able to proceed, I leave this open, as it might for your interest, that such state could arise