Ona theme doesn’t work with Woocommerce
-
Hi,
The theme doesn’t seem to work with Woocommerce.
This is the page where the error occurs when I try and create a new product:
https://sabaeanbooks.com/wp-admin/post-new.php?post_type=product
I’ve tried deactivating the theme and other themes work fine.
Here is the error log that was generated:
WordPress version 5.9.3 Current theme: Ona (version 1.5.2) 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(189): WP_Hook->apply_filters(Array, Array) #3 /var/web/site/public_html/wp-includes/class-wp-theme.php(1334): apply_filters('theme_product_t...', Array, Object(WP_Theme), Object(WP_Post), 'product') #4 /var/web/site/public_html/wp-admin/includes/theme.php(145): WP_Theme->get_page_templates(Object(WP_Post), 'product') #5 /var/web/site/public_html/wp-admin/includes/meta-boxes.php(1504): get_page_templates(Object(WP_Post)) #6 /var/web/site/public_html/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post)) #7 /var/web/site/public_html/wp-admin/post-new.php(75): require('/var/web/site/p...') #8 {main} thrown
What do I need to do?
Thanks
Clifford
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ona theme doesn’t work with Woocommerce’ is closed to new replies.