• 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.0

    Tested also on
    PHP 7.4.1
    WordPress 5.9

    • This topic was modified 2 years, 6 months ago by DeoThemes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    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?

    What’s the name of the theme?
    Theme acquired from?

    Thread Starter DeoThemes

    (@deothemes)

    I’m testing our own custom theme Ona, but the same issue happens on any other theme that uses new folder names format, for example Aino .

    • This reply was modified 2 years, 6 months ago by DeoThemes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error when using parts folder name’ is closed to new replies.