{"id":15724643,"date":"2022-06-09T21:09:39","date_gmt":"2022-06-09T21:09:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-1644\/"},"modified":"2022-06-09T21:09:39","modified_gmt":"2022-06-09T21:09:39","slug":"error-1644","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-1644\/","title":{"rendered":"error"},"content":{"rendered":"<p>log error<\/p>\n<p><code>type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(&#039;wp-blog-header.php&#039;), require_once(&#039;wp-includes\/template-loader.php&#039;), do_action(&#039;template_redirect&#039;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::do_wc_ajax, do_action(&#039;wc_ajax_checkout&#039;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, &lt;strong&gt;WC_AJAX::checkout&lt;\/strong&gt;, WC_Checkout-&gt;process_checkout, WC_Checkout-&gt;update_session, WC_Cart-&gt;calculate_totals, WC_Cart_Totals-&gt;__construct, WC_Cart_Totals-&gt;calculate, WC_Cart_Totals-&gt;calculate_item_totals, WC_Cart_Totals-&gt;calculate_discounts, WC_Discounts-&gt;apply_coupon, WC_Discounts-&gt;apply_coupon_percent, apply_filters(&#039;woocommerce_coupon_get_discount_amount&#039;), WP_Hook-&gt;apply_filters, wc_cpn_disc, WC_Legacy_Coupon-&gt;__get, wc_doing_it_wrong. This message was added in version 3.0.<\/code><\/p>\n<p> type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(&#8216;wp-blog-header.php&#8217;), require_once(&#8216;wp-includes\/template-loader.php&#8217;), do_action(&#8216;template_redirect&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::do_wc_ajax, do_action(&#8216;<strong>wc_ajax_update_order_review<\/strong>&#8216;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::update_order_review, WC_Cart-&gt;calculate_totals, WC_Cart_Totals-&gt;__construct, WC_Cart_Totals-&gt;calculate, WC_Cart_Totals-&gt;calculate_item_totals, WC_Cart_Totals-&gt;calculate_discounts, WC_Discounts-&gt;apply_coupon, WC_Discounts-&gt;apply_coupon_percent, apply_filters(&#8216;woocommerce_coupon_get_discount_amount&#8217;), WP_Hook-&gt;apply_filters, wc_cpn_disc, WC_Legacy_Coupon-&gt;__get, wc_doing_it_wrong. This message was added in version 3.0.`<\/p>\n<p> type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(&#8216;wp-blog-header.php&#8217;), require_once(&#8216;wp-includes\/template-loader.php&#8217;), do_action(&#8216;template_redirect&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::do_wc_ajax, do_action(&#8216;wc_ajax_add_to_cart&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::add_to_cart, WC_AJAX::&lt;strong&gt;get_refreshed_fragments&lt;\/strong&gt;, woocommerce_mini_cart, wc_get_template, include(&#8216;\/plugins\/woocommerce\/templates\/cart\/mini-cart.php&#8217;), do_action(&#8216;woocommerce_before_mini_cart&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WWP_Wholesale_Prices-&gt;recalculate_cart_totals, WC_Cart-&gt;calculate_totals, WC_Cart_Totals-&gt;__construct, WC_Cart_Totals-&gt;calculate, WC_Cart_Totals-&gt;calculate_item_totals, WC_Cart_Totals-&gt;calculate_discounts, WC_Discounts-&gt;apply_coupon, WC_Discounts-&gt;apply_coupon_percent, apply_filters(&#8216;woocommerce_coupon_get_discount_amount&#8217;), WP_Hook-&gt;apply_filters, wc_cpn_disc, WC_Legacy_Coupon-&gt;__get, wc_doing_it_wrong. This message was added in version 3.0.`<\/p>\n<p> type was called incorrectly. Coupon properties should not be accessed directly. Backtrace: require(&#8216;wp-blog-header.php&#8217;), require_once(&#8216;wp-includes\/template-loader.php&#8217;), do_action(&#8216;template_redirect&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::do_wc_ajax, do_action(&#8216;<strong>wc_ajax_update_shipping_method<\/strong>&#8216;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, WC_AJAX::update_shipping_method, WC_AJAX::get_cart_totals, WC_Cart-&gt;calculate_totals, WC_Cart_Totals-&gt;__construct, WC_Cart_Totals-&gt;calculate, WC_Cart_Totals-&gt;calculate_item_totals, WC_Cart_Totals-&gt;calculate_discounts, WC_Discounts-&gt;apply_coupon, WC_Discounts-&gt;apply_coupon_percent, apply_filters(&#8216;woocommerce_coupon_get_discount_amount&#8217;), WP_Hook-&gt;apply_filters, wc_cpn_disc, WC_Legacy_Coupon-&gt;__get, wc_doing_it_wrong. This message was added in version 3.0.`<\/p>\n","protected":false},"template":"","class_list":["post-15724643","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15724643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15724643\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15724643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}