• My blogs stopped appearing, a message appears saying ‘Empty template: Index’. Please help with this. I am not sure what to do.
    I have tried to preview some basic themes like Twenty Twenty One and Twenty Twenty Nineteen, but it also shows nothing on those themes

Viewing 8 replies - 1 through 8 (of 8 total)
  • Does your theme have an templates/index.html file? If so, which theme is it?

    If it is a classic theme, it could be this issue where WordPress incorrectly thinks it is a block theme because of the existence of that file: https://github.com/WordPress/gutenberg/issues/38315

    Thread Starter banky411

    (@banky411)

    Thank you so much for the quick response. The theme i am uding does have a template/index.html file. I am using ‘The core parent’ theme. I do not understand the instructions in the github repository link which you sent to me. I would appreciate a little deeper explanation.

    Thank you very much

    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.

    Thread Starter banky411

    (@banky411)

    Thank you, I just went to preview the other themes, like the Twenty Twenty-one and Twenty Twenty Nineteen themes, and the blog seems to be showing up just fine on those but the company has been using this theme for quite some time so it’ll be an inconvenience changing to a new theme.

    If I delete the template/index.html file and something goes wrong, the damage reverts once I upload it back right?

    Also, I’ve been workshopping ideas from other forums and I found and would love your advice on if it is a plausible solution.

    Thank you

    It would be impossible for me to say with 100% certainty, not knowing how the theme works (and, I’ve seen some crazy stuff in my years). However, generally speaking, it would be OK to save a backup copy of templates/index.html, delete it from the site, and re-upload the backup if something goes wrong.

    It would be best to test this idea out on a testing or staging site first.

    Thread Starter banky411

    (@banky411)

    How do I test this idea out on a testing or staging site first? I also saw this on a different forum reply but did not fully understand.

    Also is there a place where I can write a review for you, because even though I have not solved the issue, your fast replies have been a comforting reassurance.

    The best way to create a staging site is through your web host. However, not all hosts offer a way to do this. If they do, it’s usually just a few clicks to create a copy of your site to test changes on. Here’s a tutorial that walks through the process with several different hosts.

    There’s the Local WP tool, but it’s more geared toward developers.

    There’s also the official docs on setting up a test environment on your computer. Again, this can feel a bit more geared toward devs.

    The best option is definitely to check if creating a staging site with your web host is possible because you can basically test a live version of your site without actually messing up something on the real site.

    The other methods can be much more involved if you haven’t set up WordPress locally (on your computer) before. However, I do recommend going through that process at some point just to test new plugins/themes.

    As for reviewing me, there’s no way to do that. We’re all volunteers here or have paid time from our companies to help out with support. The best “review” would be for you to step in and try to help someone here in the future if you see a question you can answer.

    I had the same issue with this theme. The index.html file is empty, I just renamed it and it’s working again. The theme author doesn’t seem to exist anymore, the company that acquired them canceled all support, so it won’t ever get fixed on their side.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blog post not showing on Blog page’ is closed to new replies.