Title: Function WP_Block_Patterns_Registry::register was called incorrectly
Last modified: January 30, 2025

---

# Function WP_Block_Patterns_Registry::register was called incorrectly

 *  Resolved [tiptinker](https://wordpress.org/support/users/snowbedding/)
 * (@snowbedding)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/function-wp_block_patterns_registryregister-was-called-incorrectly-2/)
 * Function WP_Block_Patterns_Registry::register was called incorrectly. Pattern
   content must be a string. (This message was added in version 5.5.0.)
    1. `WP_Block_Patterns_Registry->register()`
       wp-includes/class-wp-block-patterns-
       registry.php:110
    2. `register_block_pattern()`
       wp-includes/class-wp-block-patterns-registry.php:
       292
    3. `Automattic\W\B\P\PatternRegistry->register_block_pattern()`
       wp-content/plugins/
       woocommerce/src/Blocks/Patterns/PatternRegistry.php:203
    4. `Automattic\W\B\BlockPatterns->register_block_patterns()`
       wp-content/plugins/
       woocommerce/src/Blocks/BlockPatterns.php:117
    5. `do_action('init')`
       wp-includes/plugin.php:517

Viewing 1 replies (of 1 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-2/#post-18277192)
 * Hi there!
 * To better assist you with resolving this issue, could you please provide more
   details about when the error message first started appearing? Have you made any
   recent changes on your site, such as updating or installing any plugins?
 * Additionally, I’ve noticed that another user has reported a similar issue on 
   our GitHub here: [https://github.com/woocommerce/woocommerce/issues/53345](https://github.com/woocommerce/woocommerce/issues/53345).
   I would suggest you add your comment to the GitHub thread as well, so our developers
   can look into it and provide further assistance. Also, you can follow the solution
   suggested by the user who reported the bug.
 * Thank you!

Viewing 1 replies (of 1 total)

The topic ‘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/)

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