• HI, I installed this plugin and I saved general settings of the plugin when I go to add restriction on product edit screen I found below Fetal Error:

    Fatal error: Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\Utilities\OrderUtil::get_post_or_object_meta() must be an instance of WP_Post or null, array given, called in /nas/content/live/mytheme/wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php on line 201 and defined in /nas/content/live/mytheme/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php:69 Stack trace: #0 /nas/content/live/mytheme/wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php(201): Automattic\WooCommerce\Utilities\OrderUtil::get_post_or_object_meta(Array, NULL, ‘_fz_country_res…’, true) #1 /nas/content/live/mytheme/wp-content/plugins/woo-product-country-base-restrictions/include/single-product.php(117): woocommerce_wp_select(Array) #2 /nas/content/live/mytheme/wp-includes/class-wp-hook.php(324): CBR_Single_Product->add_custom_product_fields(”) #3 /nas/content/live/mytheme/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #4 /nas/content/live/mytheme/wp-includes/plugi in /nas/content/live/mytheme/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php on line 69

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin throwing fetal error’ is closed to new replies.