I have created a new site collection based on a template (using c#) and everything goes great with one exception. I am unable to go to 'site settings' -> 'Page layouts and site templates'. After checking the correlation id the issue is
"List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user."
What list is it looking for? How can I change the list that is being pointed to?
I checked that there is a valid pagelayouts list but maybe the GUID doesn't match.