{"id":15903339,"date":"2022-08-10T07:34:28","date_gmt":"2022-08-10T07:34:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cart-without-delivery-hangs-with-loaders-debug-enabled\/"},"modified":"2022-08-10T07:34:28","modified_gmt":"2022-08-10T07:34:28","slug":"cart-without-delivery-hangs-with-loaders-debug-enabled","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cart-without-delivery-hangs-with-loaders-debug-enabled\/","title":{"rendered":"cart without delivery hangs with loaders (debug enabled)"},"content":{"rendered":"<p>when a cart contains only products that do not require delivery, all blocks hang with loaders because of<\/p>\n<p><code>Notice: Trying to access array offset on value of type null in wp-content\\plugins\\woo-shipping-dpd-baltic\\public\\class-dpd-public.php on line 287<\/code><\/p>\n<p>as<br \/>\n<code>$current_shipping_method = explode( &#039;:&#039;, $chosen_shipping_methods[0] );<\/code><br \/>\nassumes that delivery will always be present but $chosen_shipping_methods is null in this case<\/p>\n","protected":false},"template":"","class_list":["post-15903339","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15903339","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\/15903339\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15903339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}