{"id":16248034,"date":"2022-11-30T14:14:26","date_gmt":"2022-11-30T14:14:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-shipping-not-working-with-php-8\/"},"modified":"2022-11-30T14:14:26","modified_gmt":"2022-11-30T14:14:26","slug":"custom-shipping-not-working-with-php-8","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-shipping-not-working-with-php-8\/","title":{"rendered":"Custom shipping not working with PHP 8"},"content":{"rendered":"<p>I have a custom shipping method (not legacy) inside a shipping zone.<br \/>\nIf I switch to PHP 8.0 it stops working&#8230; In front-end I get this message instead of shipping rate: &#8220;There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.&#8221;.<\/p>\n<p>It doesn&#8217;t matter if I select flat rate, quantity based or any other method. <\/p>\n<p>I need to switch back to PHP 7.4 in order for it to work.<\/p>\n<p>Already tried Twenty Three theme and all other plugins deactivated.<br \/>\nWP 6.1.1<br \/>\nWooCommerce 7.1.0<\/p>\n","protected":false},"template":"","class_list":["post-16248034","topic","type-topic","status-publish","hentry","topic-tag-booster-for-woocommerce","topic-tag-custom-shipping"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16248034","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\/16248034\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16248034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}