Support » Plugin: WooCommerce Deutsche Post Internetmarke » FATAL Php Error ShippingItemService.php Line 32

  • Resolved svr82

    (@svr82)


    Solution:
    Change Lookup of getid to be able to deal with products that changed post id to sku … if users delete products and create them new the internetmarke plugin brakes because it cant find a product object using get id. or at least verify the product id exists befor retrieving details.

    Error:
    [12-May-2021 08:31:50 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in /wp-content/plugins/woo-dp-internetmarke/includes/Services/ShipmentItemService.php:32
    Stack trace:
    #0 /wp-content/plugins/woo-dp-internetmarke/includes/Admin/MetaBoxes.php(163): DeutschePost\Internetmarke\Services\ShipmentItemService->prepare()
    #1 /wp-includes/class-wp-hook.php(292): DeutschePost\Internetmarke\Admin\MetaBoxes->prepareShipmentForm()
    #2 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #3 /wp-includes/plugin.php(484): WP_Hook->do_action()
    #4 /wp-admin/admin-ajax.php(187): do_action()
    #5 {main}

    • This topic was modified 1 month ago by svr82.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.