Title: amlr's Replies | WordPress.org

---

# amlr

  [  ](https://wordpress.org/support/users/amlr/)

 *   [Profile](https://wordpress.org/support/users/amlr/)
 *   [Topics Started](https://wordpress.org/support/users/amlr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/amlr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/amlr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/amlr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/amlr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/amlr/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FunnelKit - Funnel Builder for WooCommerce Checkout] Draft Orders](https://wordpress.org/support/topic/draft-orders-4/)
 *  Thread Starter [amlr](https://wordpress.org/support/users/amlr/)
 * (@amlr)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/draft-orders-4/#post-18651354)
 * Hi,
   So this isn’t something that normally happens, right?
 * I’m asking because it might seem normal to lose the draft feature when creating
   a custom checkout and not using WooCommerce’s default checkout.
 * But I wasn’t sure if there was any setting I could enable to get it back.
 * As far as I know, the draft option doesn’t work when using shortcodes for the
   checkout — it has to be done with the Gutenberg block editor.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FunnelKit - Funnel Builder for WooCommerce Checkout] Draft Orders](https://wordpress.org/support/topic/draft-orders-4/)
 *  Thread Starter [amlr](https://wordpress.org/support/users/amlr/)
 * (@amlr)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/draft-orders-4/#post-18650518)
 * Hi, sorry to bother you again, but is there any update on this matter?
   To clarify
   the topic of “**draft orders**,” I’m sharing this link from WooCommerce where
   they explain it in detail: [https://woocommerce.com/document/managing-orders/order-statuses/](https://woocommerce.com/document/managing-orders/order-statuses/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FunnelKit - Funnel Builder for WooCommerce Checkout] Draft Orders](https://wordpress.org/support/topic/draft-orders-4/)
 *  Thread Starter [amlr](https://wordpress.org/support/users/amlr/)
 * (@amlr)
 * [8 months ago](https://wordpress.org/support/topic/draft-orders-4/#post-18643877)
 * Hi,
 * It’s simply a native feature of WooCommerce with Gutenberg blocks. As shown in
   the image, every time a customer reached the checkout with a product in their
   cart, filled in their details but then **didn’t click the “Pay” button and abandoned
   the page**, it created a “draft,” which I highlight in the photo. For example:**
   _Draft (1)_**
 * ![](https://i0.wp.com/i.postimg.cc/FRTppb1p/image.png?ssl=1)
 * This way, I could see if perhaps the customer abandoned the purchase because 
   shipping costs were too high, if there was an issue with the shipping plugin 
   to their country, or if they simply didn’t trust the payment method I have set
   up.
 * I want to emphasize that all of this happens **without clicking the “Pay” button**.
   If they click the “Pay” button but don’t complete the payment, it shows as “Pending
   payment” and also appears as an abandoned cart.
 * These are two different things.
 * Thank you.
    -  This reply was modified 8 months ago by [amlr](https://wordpress.org/support/users/amlr/).
    -  This reply was modified 8 months ago by [amlr](https://wordpress.org/support/users/amlr/).
    -  This reply was modified 8 months ago by [amlr](https://wordpress.org/support/users/amlr/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Packlink PRO for WooCommerce] Checkout page crash because of Packlink plugin](https://wordpress.org/support/topic/checkout-page-crash-because-of-packlink-plugin/)
 *  Thread Starter [amlr](https://wordpress.org/support/users/amlr/)
 * (@amlr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/checkout-page-crash-because-of-packlink-plugin/#post-18057824)
 * Good morning,
 * I’m sure the Packlink development team is working tirelessly to fix this bug,
   but just in case, I passed the plugin to ChatGPT, and it resolved the issue. 
   Below is the link to **the solution**:
   [https://chatgpt.com/share/66ffcce7-b18c-8010-8268-e3fe3f9c848d](https://chatgpt.com/share/66ffcce7-b18c-8010-8268-e3fe3f9c848d)
 * In case it’s still too much effort to follow the link to check it out, here is
   the exact line of code that needs to be changed in the file: **“class-block-checkout-
   handler.php”** (located in packlink-pro-shipping\Components\Checkout).
 * In version 3.4.12 of Packlink, on line 181 (opening it with Notepad), you should
   change the line:
 *     ```wp-block-code
       return explode( ':', reset( $chosen_shipping_methods ) )[1];
       ```
   
 * To this:
 *     ```wp-block-code
       if (is_array($chosen_shipping_methods) && !empty($chosen_shipping_methods)) {
           $shipping_method = reset($chosen_shipping_methods);
           if (is_string($shipping_method)) {
               $exploded_method = explode(':', $shipping_method);
               if (isset($exploded_method[1])) {
                   return $exploded_method[1];
               }
           }
       }
       return ''; // Default value if conditions are not met
       ```
   
 * This should fix the issue. I hope the Packlink team can incorporate this fix 
   into the code.
 * Thank you very much.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Packlink PRO for WooCommerce] Checkout page crash because of Packlink plugin](https://wordpress.org/support/topic/checkout-page-crash-because-of-packlink-plugin/)
 *  Thread Starter [amlr](https://wordpress.org/support/users/amlr/)
 * (@amlr)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/checkout-page-crash-because-of-packlink-plugin/#post-17987933)
 * As I see the entire development team very concerned about the issue, below is
   a copy of the error message I am receiving. This error was obtained by running
   a local copy of my website to avoid affecting the live server, but it is the 
   same error in the real environment:
 * Fatal error: Uncaught TypeError: reset(): Argument #1 ($array) must be of type
   array, string given in C:\Users\user**\Local Sites\”Websitename”\app\public\wp-
   content\plugins\packlink-pro-shipping\Components\Checkout\class-block-checkout-
   handler.php:181 Stack trace: #0 C:\Users\user**\Local Sites\”Websitename”\app\
   public\wp-content\plugins\packlink-pro-shipping\Components\Checkout\class-block-
   checkout-handler.php(181): reset(”) #1 C:\Users\user**\Local Sites\”Websitename”\
   app\public\wp-content\plugins\packlink-pro-shipping\Components\Checkout\class-
   block-checkout-handler.php(91): Packlink\WooCommerce\Components\Checkout\Block_Checkout_Handler-
   >get_selected_shipping_method() #2 C:\Users\user**\Local Sites\”Websitename”\
   app\public\wp-includes\class-wp-hook.php(324): Packlink\WooCommerce\Components\
   Checkout\Block_Checkout_Handler->checkout_update_drop_off(Object(WC_Order)) #
   3 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\class-wp-hook.
   php(348): WP_Hook->apply_filters(”, Array) #4 C:\Users\user**\Local Sites\”Websitename”\
   app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #5 C:\Users\
   user**\Local Sites\”Websitename”\app\public\wp-content\plugins\woocommerce\src\
   StoreApi\Routes\V1\Checkout.php(415): do_action(‘woocommerce_sto…’, Object(WC_Order))#
   6 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-content\plugins\woocommerce\
   src\StoreApi\Routes\V1\Checkout.php(166): Automattic\WooCommerce\StoreApi\Routes\
   V1\Checkout->create_or_update_draft_order(Object(WP_REST_Request)) #7 C:\Users\
   user**\Local Sites\”Websitename”\app\public\wp-content\plugins\woocommerce\src\
   StoreApi\Routes\V1\AbstractRoute.php(126): Automattic\WooCommerce\StoreApi\Routes\
   V1\Checkout->get_route_response(Object(WP_REST_Request)) #8 C:\Users\user**\Local
   Sites\”Websitename”\app\public\wp-content\plugins\woocommerce\src\StoreApi\Routes\
   V1\Checkout.php(136): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute-
   >get_response_by_request_method(Object(WP_REST_Request)) #9 [internal function]:
   Automattic\WooCommerce\StoreApi\Routes\V1\Checkout->get_response(Object(WP_REST_Request))#
   10 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-content\plugins\woocommerce\
   src\Blocks\Domain\Services\Hydration.php(155): call_user_func_array(Array, Array)#
   11 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-content\plugins\woocommerce\
   src\Blocks\Domain\Services\Hydration.php(65): Automattic\WooCommerce\Blocks\Domain\
   Services\Hydration->get_response_from_controller(‘Automattic\WooC…’, ‘/wc/store/
   v1/ch…’) #12 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-content\
   plugins\woocommerce\src\Blocks\Assets\AssetDataRegistry.php(340): Automattic\
   WooCommerce\Blocks\Domain\Services\Hydration->get_rest_api_response_data(‘/wc/
   store/v1/ch…’) #13 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-content\
   plugins\woocommerce\src\Blocks\Assets\AssetDataRegistry.php(269): Automattic\
   WooCommerce\Blocks\Assets\AssetDataRegistry->Automattic\WooCommerce\Blocks\Assets{
   closure}() #14 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-content\
   plugins\woocommerce\src\Blocks\Assets\AssetDataRegistry.php(385): Automattic\
   WooCommerce\Blocks\Assets\AssetDataRegistry->execute_lazy_data() #15 C:\Users\
   user**\Local Sites\”Websitename”\app\public\wp-includes\class-wp-hook.php(324):
   Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data(”)#
   16 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\class-wp-
   hook.php(348): WP_Hook->apply_filters(”, Array) #17 C:\Users\user**\Local Sites\”
   Websitename”\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array)#
   18 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\script-loader.
   php(2246): do_action(‘wp_print_footer…’) #19 C:\Users\user**\Local Sites\”Websitename”\
   app\public\wp-includes\class-wp-hook.php(324): wp_print_footer_scripts(”) #20
   C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\class-wp-hook.
   php(348): WP_Hook->apply_filters(NULL, Array) #21 C:\Users\user**\Local Sites\”
   Websitename”\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array)#
   22 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\general-template.
   php(3081): do_action(‘wp_footer’) #23 C:\Users\user**\Local Sites\”Websitename”\
   app\public\wp-content\themes\kadence\footer.php(38): wp_footer() #24 C:\Users\
   user**\Local Sites\”Websitename”\app\public\wp-includes\template.php(810): require_once(‘
   C:\Users\user**\…’) #25 C:\Users\user**\Local Sites\”Websitename”\app\public\
   wp-includes\template.php(745): load_template(‘C:\Users\user**\…’, true, Array)#
   26 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\general-template.
   php(92): locate_template(Array, true, true, Array) #27 C:\Users\user**\Local 
   Sites\”Websitename”\app\public\wp-content\themes\kadence\page.php(22): get_footer()#
   28 C:\Users\user**\Local Sites\”Websitename”\app\public\wp-includes\template-
   loader.php(106): include(‘C:\Users\user**\…’) #29 C:\Users\user**\Local Sites\”
   Websitename”\app\public\wp-blog-header.php(19): require_once(‘C:\Users\user**\…’)#
   30 C:\Users\user**\Local Sites\”Websitename”\app\public\index.php(17): require(‘
   C:\Users\user**\…’) #31 {main} thrown in C:\Users\user**\Local Sites\”Websitename”\
   app\public\wp-content\plugins\packlink-pro-shipping\Components\Checkout\class-
   block-checkout-handler.php on line 181
 * There has been a critical error on this website.
 * **I get the same error for all versions 3.4.X.** I recall that version 3.3.4 
   works correctly.
 * Thank you very much
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Yoast Seo doesnt’ show in post](https://wordpress.org/support/topic/yoast-seo-doesnt-show-in-post/)
 *  Thread Starter [amlr](https://wordpress.org/support/users/amlr/)
 * (@amlr)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/yoast-seo-doesnt-show-in-post/#post-17434781)
 * I have solved, sorry for the inconveniences

Viewing 6 replies - 1 through 6 (of 6 total)