• Imageecabral

    (@ecabral)


    Hi there!

    I’m on WordPress 6.8.2 using a child of Twenty Twenty-Five. I have 49 custom patterns with the status Published. They show in the front end and in /wp-admin/edit.php?post_type=wp_block. However, some time back, they stopped appearing both when I try to insert a block or in Editor > Patterns > My Patterns.

    I have already switched themes, disabled all plugins, cleared caches. It made no difference.

    I have a different site, similar setup, with 14 custom patterns. No issues here.

    Saw this Github issue which seems related, but it’s closed and no fix was presented as far as I understand.

    I appreciate any help. Thanks a lot!

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

    (@ecabral)

    Still waiting for some feedback… thanks!

    Plugin Author ImageJoen Asmussen

    (@joen)

    Hey, I took a look, and I cannot reproduce this myself, I see all my custom patterns on this URL /wp-admin/site-editor.php?p=%2Fpattern&postType=wp_block&categoryId=my-patterns.

    But I did respond on the GH issue you referenced, to see if anyone can take a look at this thread.

    Thread Starter Imageecabral

    (@ecabral)

    @joen – Thanks for that!

    Quick note to point out that while I see my patterns listed in /wp-admin/edit.php?post_type=wp_block, your URL /wp-admin/site-editor.php?p=%2Fpattern&postType=wp_block&categoryId=my-patterns shows ‘No results’.

    In any case, I’m still not able to use any of my patterns as they do not show in the block editor.

    Plugin Author ImageJoen Asmussen

    (@joen)

    That is very curious indeed. I assume this is the same user you’re logged in with, that created those patterns? On my end, I see the same patterns listed at both of those URLs:

    Image

    Absent any other ideas, I’m going to drop this issue as a link in the core WordPress chat, see if any developers might be able to take a look.

    Plugin Author ImageDaniel Richards

    (@talldanwp)

    I’m not sure how technical your are @ecabral, but it sounds like a possible issue with the REST API on your site. The newer gutenberg-style pages use the WordPress REST API to retrieve the list of patterns, the older WP admin page doesn’t use the REST API (I expect it uses WP Query directly).

    I’ve seen in the past some users have issues with the REST API when they have a firewall setup too aggressively, so that could be something to check.

    You can also check the network requests in your browser dev tools to see what happened to the request for patterns. Let me know if you’d like me to explain how to do that.

    Thread Starter Imageecabral

    (@ecabral)

    @talldanwp – I temporarily disabled the firewall, but it made no difference. Other troubleshooting steps I tried:

    • flushed permalinks
    • performed a clean reinstall of WP 6.9
    • tested with all plugins deactivated
    • tested with the core Twenty Twenty-Five parent theme
    • confirmed that the missing patterns exist in wp_posts with post_type = 'wp_block' and post_status = 'publish' in phpMyAdmin
    • ../wp-json/wp/v2/patterns shows “rest_no_route”, 404 for patterns

    Unsure how to proceed from here. Any help is much appreciated.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.