• Hi,

    I’ve tried using Aino theme and it’s been working well.

    Just now I tried to add a woocommerce product and I got the following error message:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    In addition to that, I recieved an email with more info:

    WordPress version 6.0
    Active theme: Aino (version 2.6.3)
    Current plugin: WooCommerce (version 6.5.1)
    PHP version 8.0.19

    Error Details
    =============
    An error of type E_ERROR was caused in line 279 of the file /var/web/site/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /var/web/site/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:279
    Stack trace:
    #0 /var/web/site/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(279): in_array(‘product’, NULL)
    #1 /var/web/site/public_html/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->remove_block_templates(Array)
    #2 /var/web/site/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
    #3 /var/web/site/public_html/wp-includes/class-wp-theme.php(1342): apply_filters(‘theme_product_t…’, Array, Object(WP_Theme), NULL, ‘product’)
    #4 /var/web/site/public_html/wp-admin/includes/theme.php(145): WP_Theme->get_page_templates(NULL, ‘product’)
    #5 /var/web/site/public_html/wp-admin/includes/class-wp-posts-list-table.php(1812): get_page_templates(NULL, ‘product’)
    #6 /var/web/site/public_html/wp-admin/edit.php(483): WP_Posts_List_Table->inline_edit()
    #7 {main}
    thrown`

    Now I’m wondering does this theme work with WooCommerce?

    Thanks

    • This topic was modified 2 years, 6 months ago by clifford19.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author ElmaStudio

    (@elmastudio)

    Hi there,

    thanks so much for reporting this issue. Do you have the WooCommerce Blocks plugin active? You will need this plugin together with the default WooCommerce plugin then the theme should work with WooCommerce.

    Since our WooCommerce support as well as WooCommerce’s block theme support is still under development, I will check to see if an update is needed.

    I will release the theme the next update on Monday, so I will check before that.

    Kind Regards, Ellen

    Thread Starter clifford19

    (@clifford19)

    Thanks Ellen

    Yes, WooCommerce Blocks is installed and active but an error message is still generated when trying to add a new product.

    I’ve found a workaround.

    Fortunately the theme has several products already, so I can edit those with my own product details.

    Thread Starter clifford19

    (@clifford19)

    The workaround didn’t work.

    I tried to edit one of the products and the error message came back:

    WordPress version 6.0
    Active theme: Aino (version 2.6.3)
    Current plugin: WooCommerce (version 6.5.1)
    PHP version 8.0.20
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 279 of the file /var/web/site/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /var/web/site/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:279
    Stack trace:
    #0 /var/web/site/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(279): in_array('product', NULL)
    #1 /var/web/site/public_html/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->remove_block_templates(Array)
    #2 /var/web/site/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
    #3 /var/web/site/public_html/wp-includes/class-wp-theme.php(1342): apply_filters('theme_product_t...', Array, Object(WP_Theme), NULL, 'product')
    #4 /var/web/site/public_html/wp-admin/includes/theme.php(145): WP_Theme->get_page_templates(NULL, 'product')
    #5 /var/web/site/public_html/wp-admin/includes/class-wp-posts-list-table.php(1812): get_page_templates(NULL, 'product')
    #6 /var/web/site/public_html/wp-admin/edit.php(483): WP_Posts_List_Table->inline_edit()
    #7 {main}
    thrown

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does this theme work with Woocommerce’ is closed to new replies.