• Resolved ncweb

    (@ncweb)


    Hi,

    Since the upgrade to 5.8, I’ve noticed templates are missing from page attributes on several websites I manage.
    It’s only the select in Gutenberg. The pages still use their respective templates.

    Rollback to 5.7.2 seems to fix the issue.

    What I’ve tried so far :

    • Make the template post type accessible for posts. Same, the selector is not available in the Gutenberg Editor
    • Change the style.css version
    • Change the template name
    • List all template available with wp_get_theme()->get_page_templates( $post, $post_type ) : they’re all here !
    • Setting WP_DEBUG to true : nothing here !

    So, templates are registered and working, but no way to bring back the select under “Page Attributes” in the Gutenberg Editor.

    All the websites where the bug occurs are using the same plugins and they’re all up to date :

    • Yoast SEO
    • ACF
    • Wordfence
    • W3C Total cache

    Nothing on the internet.
    Any idea ?

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ncweb

    (@ncweb)

    I’ve created a new WordPress blank install on my local environment. With a minimal custom theme and a page template.

    It was working with older version of WordPress core.

    When updating to 5.8 : same problem, the select for page templates under page attributes is gone.

    No plugins and minimal environment. At this point I think it’s a bug with 5.8.

    I’ll check how to report it. If any of you guys have had similar issue, please let me know !

    Best regards

    Hi @ncweb,

    There’s a new “Template” option in the sidebar, do you see that in the editor? If so, your templates should be there, not under “Page Attributes”.

    Thread Starter ncweb

    (@ncweb)

    @ehtis

    Thanks for your answer.

    The new template option is juste here… And I’m checking core files and running tests to find a bug since hours…

    Well, someone has to better read patch notes I guess.

    I have a ticket to close !
    Thanks alot.

    The same Issue… not showing page attribute, Even though The template option is not working too, When I click on the update or publish button, the publish button will not work. Also, Elementor Stuck on Loading & the 404 error occur.

    Hi @ncweb,

    There’s a new “Template” option in the sidebar, do you see that in the editor? If so, your templates should be there, not under “Page Attributes”.

    What sidebar are you talking about? I don’t see the template option.

    Here is the screen shot:

    https://www.awesomescreenshot.com/image/11604178?key=d9989dc703a04be3fcd6e981b4d8ec83

    Brand new WordPress 5.8 installation, Stock 2021 Theme, what am I missing?

    Thread Starter ncweb

    (@ncweb)

    Hi @neufsky

    Are you sure you have a template registered ?

    Since 5.8 there is a new dropdown in the sidebar.

    Try to output templates to confirm they’re registered with :

    wp_get_theme()->get_page_templates( $post, $post_type )

    https://developer.www.ads-software.com/reference/functions/get_page_templates/

    Let me know,
    Best regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page templates missing from page attributes after 5.8’ is closed to new replies.