Title: Problem etiquette creation
Last modified: October 8, 2024

---

# Problem etiquette creation

 *  [strotch](https://wordpress.org/support/users/strotch/)
 * (@strotch)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/problem-etiquette-creation/)
 * We have a problem with the “etiquette” creation for an order, we have this error
   message showing:
 * Can you help us?
 * **Fatal error**: Uncaught Exception: Invalid value () for type, possible values
   are: basicInsurance, additionalInsurance.
   in **/home/XXXX/wp-content/plugins/
   bpost-shipping/vendor/antidot-be/bpost-api-library/src/Bpost/Order/Box/Option/
   Insured.php** on line **67**
 * Call stack:
    1.  `Bpost\B\B\O\B\O\Insured::setType()`
        wp-content/plugins/bpost-shipping/vendor/
        antidot-be/bpost-api-library/src/Bpost/Order/Box/Option/Insured.php:130
    2.  `Bpost\B\B\O\B\O\Insured::__construct()`
        wp-content/plugins/bpost-shipping/
        vendor/antidot-be/bpost-api-library/src/Bpost/Order/Box/Option/Insured.php:
        179
    3.  `Bpost\B\B\O\B\O\Insured::createFromXML()`
    4.  `call_user_func()`
        wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-
        api-library/src/Bpost/Order/Box/National.php:289
    5.  `Bpost\B\B\O\B\National::getOptionFromOptionData()`
        wp-content/plugins/bpost-
        shipping/vendor/antidot-be/bpost-api-library/src/Bpost/Order/Box/National.php:
        248
    6.  `Bpost\B\B\O\B\National::createFromXML()`
        wp-content/plugins/bpost-shipping/
        vendor/antidot-be/bpost-api-library/src/Bpost/Order/Box/AtHome.php:157
    7.  `Bpost\B\B\O\B\AtHome::createFromXML()`
    8.  `call_user_func()`
        wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-
        api-library/src/Bpost/Order/Box.php:252
    9.  `Bpost\B\B\O\Box::createFromXML()`
        wp-content/plugins/bpost-shipping/vendor/
        antidot-be/bpost-api-library/src/Bpost/Order.php:264
    10. `Bpost\B\B\Order::createFromXML()`
        wp-content/plugins/bpost-shipping/vendor/
        antidot-be/bpost-api-library/src/Bpost.php:427
    11. `Bpost\BpostApiClient\Bpost::fetchOrder()`
        wp-content/plugins/bpost-shipping/
        classes/api/class-wc-bpost-shipping-api-label.php:107
    12. `WC_BPost_Shipping\Api\WC_BPost_Shipping_Api_Label::get_barcodes()`
        wp-content/
        plugins/bpost-shipping/classes/api/class-wc-bpost-shipping-api-label.php:128
    13. `WC_BPost_Shipping\Api\WC_BPost_Shipping_Api_Label::get_already_printed_labels()`
        
        wp-content/plugins/bpost-shipping/classes/api/class-wc-bpost-shipping-api-label.
        php:49
    14. `WC_BPost_Shipping\Api\WC_BPost_Shipping_Api_Label::get_label()`
        wp-content/
        plugins/bpost-shipping/classes/label/class-wc-bpost-shipping-label-retriever.
        php:62
    15. `WC_BPost_Shipping\Label\WC_BPost_Shipping_Label_Retriever::get_label_as_file()`
        
        wp-content/plugins/bpost-shipping/classes/label/class-wc-bpost-shipping-label-
        attachment.php:50
    16. `WC_BPost_Shipping\Label\WC_BPost_Shipping_Label_Attachment::create_attachment()`
        
        wp-content/plugins/bpost-shipping/classes/label/class-wc-bpost-shipping-label-
        attachment.php:93
    17. `WC_BPost_Shipping\Label\WC_BPost_Shipping_Label_Attachment::get_url()`
        wp-
        content/plugins/bpost-shipping/classes/label/class-wc-bpost-shipping-label-
        retriever.php:116
    18. `WC_BPost_Shipping\Label\WC_BPost_Shipping_Label_Retriever::get_label_attachment_url()`
        
        wp-content/plugins/bpost-shipping/classes/label/class-wc-bpost-shipping-label-
        retriever.php:93
    19. `WC_BPost_Shipping\Label\WC_BPost_Shipping_Label_Retriever::get_labels_contents()`
        
        wp-content/plugins/bpost-shipping/classes/label/class-wc-bpost-shipping-label-
        controller.php:85
    20. `WC_BPost_Shipping\Label\WC_BPost_Shipping_Label_Controller::load_template()`
        
        wp-content/plugins/bpost-shipping/classes/class-wc-bpost-shipping-hooks.php:
        333
    21. `WC_BPost_Shipping_Hooks::bpost_virtual_page_label()`
        wp-includes/class-wp-
        hook.php:324
    22. `WP_Hook::apply_filters()`
        wp-includes/class-wp-hook.php:348
    23. `WP_Hook::do_action()`
        wp-includes/plugin.php:517
    24. `do_action()`
        wp-content/plugins/woocommerce/src/Internal/Utilities/LegacyRestApiStub.
        php:162
    25. `Automattic\W\I\U\LegacyRestApiStub::maybe_process_wc_api_query_var()`
        wp-content/
        plugins/woocommerce/src/Internal/Utilities/LegacyRestApiStub.php:91
    26. `Automattic\W\I\U\LegacyRestApiStub::parse_legacy_rest_api_request()`
    27. `call_user_func_array()`
        wp-content/plugins/woocommerce/src/Internal/Traits/
        AccessiblePrivateMethods.php:178
    28. `Automattic\W\I\U\LegacyRestApiStub::__callStatic()`
        wp-includes/class-wp-hook.
        php:324
    29. `WP_Hook::apply_filters()`
        wp-includes/class-wp-hook.php:348
    30. `WP_Hook::do_action()`
        wp-includes/plugin.php:565
    31. `do_action_ref_array()`
        wp-includes/class-wp.php:418
    32. `WP::parse_request()`
        wp-includes/class-wp.php:813
    33. `WP::main()`
        wp-includes/functions.php:1336
    34. `wp()`
        wp-blog-header.php:16
    35. `require()`
        index.php:17

Viewing 1 replies (of 1 total)

 *  Plugin Author [bpost_shipping](https://wordpress.org/support/users/bpost_shipping/)
 * (@bpost_shipping)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/problem-etiquette-creation/#post-18061454)
 * Dear,
 * Thank you for your message.
 * To be able analyse the issue in detail, can you send us your findings by mail
   to our mailbox : [esolutions@bpost.be](https://wordpress.org/support/topic/problem-etiquette-creation/esolutions@bpost.be?output_format=md)?
 * If possible do you shave some screenshots of the error on the website?
 * Regards,
 * Bpost esolutions team

Viewing 1 replies (of 1 total)

The topic ‘Problem etiquette creation’ is closed to new replies.

 * ![](https://ps.w.org/bpost-shipping/assets/icon.svg?rev=1295936)
 * [bpost shipping](https://wordpress.org/plugins/bpost-shipping/)
 * [Support Threads](https://wordpress.org/support/plugin/bpost-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/bpost-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bpost-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bpost-shipping/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bpost_shipping](https://wordpress.org/support/users/bpost_shipping/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/problem-etiquette-creation/#post-18061454)
 * Status: not resolved