Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Function WP_Block_Patterns_Registry::register was called incorrectly.
Last modified: January 14, 2025

---

# [NSFW] Function WP_Block_Patterns_Registry::register was called incorrectly.

 *  Resolved [mycustomsoftware](https://wordpress.org/support/users/mycustomsoftware/)
 * (@mycustomsoftware)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/function-wp_block_patterns_registryregister-was-called-incorrectly/)
 * Why I got 38 warnings in “query monitor”:
   Function WP_Block_Patterns_Registry::
   register was called incorrectly. Pattern content must be a string. (This message
   was added in version 5.5.0.)

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

 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/function-wp_block_patterns_registryregister-was-called-incorrectly/#post-18245211)
 * Hi there!
 * I understand your concern. Based on similar reports, some users have faced this
   issue with a Bedrock installation or after syncing their database from another
   environment. Additionally, one user was able to fix the issue by clearing the
   cache using CLI, as mentioned here: [WP_Block_Patterns_Registry::register was called incorrectly](https://wordpress.org/support/topic/wp_block_patterns_registryregister-was-called-incorrectly/#post-18223807).
 * I also noticed another related issue reported on GitHub: [#53345](https://github.com/woocommerce/woocommerce/issues/53345).
   I recommend submitting your comment there so our developers can review it and
   provide further assistance.
 * If the steps mentioned in these threads don’t resolve the issue, please let us
   know with additional details about your setup, such as whether you are using 
   Bedrock or have recently synced databases. This information will help us assist
   you more effectively.
 * Just to verify, have you recently tried to sync your database from another environment?
   Are you using a Bedrock installation? The more information you provide, the more
   accurately we can assist you.
 *  Thread Starter [mycustomsoftware](https://wordpress.org/support/users/mycustomsoftware/)
 * (@mycustomsoftware)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/function-wp_block_patterns_registryregister-was-called-incorrectly/#post-18246338)
 * Thanks! Terminal command “wp transient delete –all –network” was helpful enough.

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

The topic ‘[NSFW] Function WP_Block_Patterns_Registry::register was called incorrectly.’
is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mycustomsoftware](https://wordpress.org/support/users/mycustomsoftware/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/function-wp_block_patterns_registryregister-was-called-incorrectly/#post-18246338)
 * Status: resolved