• Resolved philraymond

    (@philraymond)


    I’ve been on the Twenty Twenty theme for the last couple of years.

    When I activate the Twenty Twenty-Two theme and go to the site editor, I get the message “The editor is unable to find a block template for the homepage” with a button to go back to the Dashboard. Nothing else.

    So how do I even get started with this template? Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same here. Disabled all plugins as still no dice.

    EDIT: I was using WP 5.9.1. I rolled back to 5.9 and it works fine now.

    Thread Starter philraymond

    (@philraymond)

    Thanks for sharing, Mike. Guess I’ll wait a little longer.

    Experiencing the same thing here, on both Twenty-Twenty-Two as well as a custom FSE theme I’m building. WP 5.9.1, tested on PHP 7.4 and 8.0. Activating Gutenberg 12.6.1 fixes it for me, too.

    I created a bug report here, since I’m pretty sure this is a core issue, not a problem with the theme itself: https://core.trac.www.ads-software.com/ticket/55288.

    @philraymond Most likely, the current Gutenberg version will make it into WordPress 6.0, so you probably won’t need to have the plugin around after that. And with the bug report it could very well be fixed sooner ??

    I face this problem because my WordPress Address (URL) and Site Address (URL) are different.

    I could fix it by installing Gutenberg plugin and adding this filter

    add_filter('rest_url', function($url) {
        $url = str_replace(home_url(), site_url().'/index.php', $url);
        return $url;
    });

    Seems like Gutenberg needs the rest API to function properly and when site address is different then rest URL is different too and Gutenberg fails to get this right.

    Hi,

    We’ve also had this exact error here and found that a shortcode that signed out the user was responsible.

    Installing the Gutenberg plugin did not resolve the issue.

    We resolved the issue by not letting the particular shortcode run if is_admin() were true.

    Whilst this is not likely to be a fix for your situations, it’s worth noting that the editor seems to run all shortcodes before opening.

    We assume this because the shortcode in question was not part of the template that opens when we open the editor or any template for that matter.

    Oliver

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m closing this topic and archiving the “I have this problem too!” Also someone reported this topic and that was wrong.

    If you need support then per the forum guidelines please start your own topic.

    https://www.ads-software.com/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    You can do so here.
    https://www.ads-software.com/support/theme/twentytwentytwo/

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Also the topic can only be marked resolved by a forum moderator or the original person who started this topic.

    No moderator marked this as resolved. If you think you have this problem then start your own topic using the link above.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“The editor is unable to find a block template for the homepage”’ is closed to new replies.