REST API: Undefined array key “ignore_discounts”
-
I get a lot of these errors in the error log. Everything seems to be working fine, but errors drain my Sentry quota and I believe they should be handled silently if they don’t cause issues in API response.
I can’t test without plugins or on storefront theme. Shop is connected to external system through API and I can’t connect dev to this system.
ErrorException: Warning: Undefined array key "ignore_discounts"
#14 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php(387): WC_REST_Shipping_Zone_Methods_V2_Controller::get_settings
#13 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php(354): WC_REST_Shipping_Zone_Methods_V2_Controller::prepare_item_for_response
#12 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php(146): WC_REST_Shipping_Zone_Methods_V2_Controller::get_items
#11 /wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Server::respond_to_request
#10 /wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server::dispatch
#9 /wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server::serve_request
#8 /wp-includes/rest-api.php(410): rest_api_loaded
#7 /wp-includes/class-wp-hook.php(308): WP_Hook::apply_filters
#6 /wp-includes/class-wp-hook.php(332): WP_Hook::do_action
#5 /wp-includes/plugin.php(565): do_action_ref_array
#4 /wp-includes/class-wp.php(399): WP::parse_request
#3 /wp-includes/class-wp.php(780): WP::main
#2 /wp-includes/functions.php(1334): wp
#1 /wp-blog-header.php(16): require
#0 /index.php(17): null
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘REST API: Undefined array key “ignore_discounts”’ is closed to new replies.