WP_Block_Patterns_Registry::register was called incorrectly
-
I’m currently seeing logs full of:
Function WP_Block_Patterns_Registry::register was called incorrectly. Pattern content must be a string. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html/web/wp/wp-includes/functions.php on line?6085
By process of elimination, (turning plugins and themes off) I’ve narrowed it down to WooCommerce.
/class-wp-block-patterns-registry.php:309 seems to be the offending line.register_block_pattern(?$pattern_name =?‘woocommerce/coming-soon-store-only’,?$pattern_properties =?[‘title’ => ‘Coming Soon Store Only’, ‘slug’ => ‘woocommerce/coming-soon-store-only’, ‘description’ => ”, ‘categories’ => [0 => ‘woo-commerce’], ‘inserter’ => FALSE, ‘featureFlag’ => ‘launch-your-store’, ‘templateTypes’ => ”, ‘source’ => ‘/var/www/cws.eunomia.apexl/web/app/plugins/woocommerce/patterns/coming-soon-store-only.php’]?)…/PatternRegistry.php:203
WP_Block_Patterns_Registry->register(?$pattern_name =?‘woocommerce/coming-soon-store-only’,?$pattern_properties =?[‘title’ => ‘Coming Soon Store Only’, ‘slug’ => ‘woocommerce/coming-soon-store-only’, ‘description’ => ”, ‘categories’ => [0 => ‘woo-commerce’], ‘inserter’ => FALSE, ‘featureFlag’ => ‘launch-your-store’, ‘templateTypes’ => ”, ‘source’ => ‘/var/www/cws.eunomia.apexl/web/app/plugins/woocommerce/patterns/coming-soon-store-only.php’]?)…/class-wp-block-patterns-registry.php:309
This is thrown when using the base WordPress theme
The install is Bedrock.
Latest WooCommerce (9.5.1)
- The topic ‘WP_Block_Patterns_Registry::register was called incorrectly’ is closed to new replies.