• Resolved becksteiner

    (@becksteiner)


    Hello,

    When I use to make a paypal payment the error occurs at the end screen of the woocommers order, when the paypal pop up is getting closed. The end screen should appear but an error with the local pick-up inventory occures.

    Could you help me fixing it?

    Friendly regards, Robert

    Full Error Message:

    Log of Fatalerrors:
    
    2022-03-10T08:28:56+00:00 CRITICAL Uncaught Error: Call to a member function set_data() on null in /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-content/plugins/wr_local-pickup/includes/class-wr-local-pickup-inventory.php:73
    
    Stack trace:
    
    #0 /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-content/plugins/wr_local-pickup/includes/class-wr-local-pickup-inventory.php(64): WR_Local_Pickup_Inventory::set_inventory_priority()
    
    #1 /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-includes/class-wp-hook.php(307): WR_Local_Pickup_Inventory::process_product_inventories()
    
    #2 /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    
    #3 /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-includes/plugin.php(474): WP_Hook->do_action()
    
    #4 /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(388): do_action()
    
    #5 /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1183): WC_Checkout->create_ in /var/www/vhosts/foto-schneider-shop.at/httpdocs/wp-content/plugins/wr_local-pickup/includes/class-wr-local-pickup-inventory.php in Zeile 73

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter becksteiner

    (@becksteiner)

    Solution.
    Adding the following code at line 73:
    if(empty($priority)){ $priority = 1; };

    Friendly regards, Robert

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error class-wr-local-pickup-inventory.php in Zeile 73’ is closed to new replies.