The Gutenberg ticket does not include instructions for fixing the problem. It’s a description of how to replicate the issue. I was just linking it to say that it could be the same issue as you described and that it is known to the WordPress development team. However, because the ticket is still open, it means that it is not fixed yet.
Based on what you’ve said thus far, I feel certain that the ticket describes the same issue that you’re experiencing. And, that’s a bit of a problem to fix.
Basically, what is happening is that WordPress thinks you have a block theme installed because of the existence of the templates/index.html
file in your theme. However, because it is a classic theme theme and its templates/index.html
file does not contain valid block code, WordPress is outputting the error you posted above.
Unfortunately, there doesn’t seem to be a hook for overriding this behavior, and the only place to address it would be in the theme itself.
The Core seems to be a commercial theme, so I don’t have access to its files. The best person to address this right now (at least until the above-linked ticket is fixed) is the theme author.
The only thing I could help with here might be to tell you to delete your templates/index.html
file, but that could break something on your site (definitely consult the theme author before trying this). It is a non-standard file for classic themes, so The Core theme you have installed must be doing something custom with it.