Closed danielbair closed 6 years ago
Thanks for your report, @danielbair. PR #19386 should fix the fatal error.
I'd be curious to know if there is already a default product category in your site or not. Could you please check? To do so, simply go to the Product categories admin page (https://jesus4asia.org/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product) and see if the first item on the list has a question mark icon instead of the regular checkbox. Usually, the name of the default product category is "Uncategorized".
Yes, I did set a default product category in our WooCommerce. It is not the first item in the list, though. Here is our default category edit link... https://jesus4asia.org/wp-admin/term.php?taxonomy=product_cat&tag_ID=1131&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_cat%26post_type%3Dproduct
BTW, I am NOT able to add a new category named "Uncategorized" from the Product Categories admin area.
Prerequisites
master
branch of WooCommerce on Github (this is not the same version as on WordPress.org!)Steps to reproduce the issue
Expected/actual behavior
When I follow those steps, I see... Blank page In the error log: PHP Fatal Error... 2018-03-13T05:38:32+00:00 CRITICAL Uncaught Error: Cannot use object of type WP_Error as array in /nas/content/live/jesus4asia/wp-content/plugins/woocommerce/includes/class-wc-install.php:480 Stack trace:
0 /nas/content/live/jesus4asia/wp-content/plugins/woocommerce/includes/class-wc-install.php(189): WC_Install::create_terms()
1 /nas/content/live/jesus4asia/wp-content/plugins/woocommerce/includes/class-wc-install.php(145): WC_Install::install()
2 [internal function]: WC_Install::check_version('')
3 /nas/content/live/jesus4asia/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
4 /nas/content/live/jesus4asia/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
5 /nas/content/live/jesus4asia/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
6 /nas/content/live/jesus4asia/wp-settings.php(450): do_action('init')
7 /nas/content/live/jesus4asia/wp-config.php(141): require_once('/nas/content/li...')
8 /nas/content/live/jesus4asia/wp-load.php(37): require_once('/nas/content/li...')
9 /nas/content/
I was expecting to see... My website
Isolating the problem
WordPress Environment