Fatal error when using parts folder name
-
I’m getting this error when creating a new product in WooCommerce. If I rename the folder inside the theme from parts to block-template-parts the error is gone. Should we then use the old format in our theme?
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in C:\...\test\app\public\wp-content\plugins\woocommerce\includes\admin\class-wc-admin-meta-boxes.php on line 279
Testing environment
PHP: 8.0.0
WordPress: 6.0Tested also on
PHP 7.4.1
WordPress 5.9
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error when using parts folder name’ is closed to new replies.