• Resolved gferguson78

    (@gferguson78)


    After yesterday’s update to V2.4.1 which introduced the Shipstation integration I’m now getting the following fatal errors on our site whenever Shipstation sends over tracking info to our site –

    2023-11-15T10:27:46+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function WooCommerce\PayPalCommerce\OrderTracking\Integration\ShipStationIntegration::WooCommerce\PayPalCommerce\OrderTracking\Integration{closure}(), 1 passed in ../public_html/wp-includes/class-wp-hook.php on line 326 and exactly 2 expected in ../public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-order-tracking/src/Integration/ShipStationIntegration.php:74
    Stack trace: 0 ../public_html/wp-includes/class-wp-hook.php(326): WooCommerce\PayPalCommerce\OrderTracking\Integration\ShipStationIntegration->WooCommerce\PayPalCommerce\OrderTracking\Integration{closure}() 1 ../public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 2 ../public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 3 ../public_html/wp-content/plugins/woocommerce-shipstation-integration/includes/api-requests/class-wc-shipstation-api-shipnotify.php(334): do_action() 4 ../public_html/wp-content/plugins/woocommerce-shipstation-integration/includes/class-wc-shipstation-api.php(80): WC_Shipstation_API_Shipnotify->request() 5 ../public_html/wp-content/plugins/woocommerce-shipstation-integration/includes/class-wc-shipstation-api.php(37): WC_Shipstation_API->request() 6 ../public_html/wp-content/plugins/woocommerce-shipstation-integration/includes/class-wc-shipstation-api.php(89): WC_Shipstation_API->__construct() 7 ../public_html/wp-content/plugins/woocommerce-shipstation-integration/woocommerce-shipstation.php(81): include_once(‘/home/577553.cl…’) 8 ../public_html/wp-includes/class-wp-hook.php(324): woocommerce_shipstation_api() 9 ../public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 10 ../public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 11 ../public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action() 12 ../public_html/wp-includes/class-wp-hook.php(324): WC_API->handle_api_requests() 13 ../public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 14 ../public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 15 ../public_html/wp-includes/class-wp.php(418): do_action_ref_array() 16 ../public_html/wp-includes/class-wp.php(813): WP->parse_request() 17 ../public_html/wp-includes/functions.php(1336): WP->main() 18 ../public_html/wp-blog-header.php(16): wp() 19 ../public_html/index.php(17): require(‘/home/…’) 20 {main}

    thrown in ../public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-order-tracking/src/Integration/ShipStationIntegration.php on line 74

    We are running with the current Shipstation plugin. The tracking number and carrier info are being stored correctly by WooCommerce but it’s sending back this error to Shipstation so it keeps retrying every time a shipment is updated and we’re ending up with the same tracking number being stored in the order several times as a result.

    Is there a way I can disable this new Shipstation functionality until this has been fixed?

    Many thanks,

    Gordon

    • This topic was modified 1 year, 4 months ago by gferguson78.

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gferguson78

    Thank you for reaching out to us, we are here to help.

    We are aware of the issue that occurred after the 2.4.2 release, and we have opened a bug to correct this behavior. I am waiting for our developers to pick this up, and we hope to get a fix in place for an early release.

    At his moment, we can only advise you to revert to version 2.4.1 or alternatively to disable the tracking feature. I will try to get you a beta version as soon as I can. Let me know if you have any further questions on this.

    Kind regards,
    Joost

    Thread Starter gferguson78

    (@gferguson78)

    I am currently on the 2.4.1 release. I haven’t seen a 2.4.2 release yet.

    How can I disable the tracking feature within the PayPal plugin? I can’t seem to find a setting for this.

    If this isn’t possible is it safe for me to revert back to V2.4.0?

    Thanks,
    Gordon

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello all

    You find a filter on how to disable the tracking feature here.

    It should be safe to revert to 2.4.0 as well, but since every WordPress environment can behave different, we can’t be sure about such statements, so I would surely advise trying this filter first.

    Let me know if you have any further questions for us.

    Kind regards,
    Joost

    Thread Starter gferguson78

    (@gferguson78)

    Thanks for your help. I have now tried adding the recommended snippet:

    add_filter(‘woocommerce_paypal_payments_shipment_tracking_enabled’, ‘__return_false’);

    The problem persists though, this doesn’t fix the issue. I’ve tried updating orders and still get the same fatal error every time. I now have a whole load of orders with about 20 tracking links showing on them (it seems shipstation keeps on trying to update WooCommerce until it gets a successful response – the tracking link is stored and then the fatal error with PayPal occurs) and they’ve also all been moved back to processing status.

    Please can you publish the fix for this here so we can get this resolved before it does any more damage to our site?

    Many thanks,
    Gordon

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gferguson78

    I just received a package that could possibly resolve this issue for you. Can you download this package and install it to see if it resolves this problem for you? Please first test this on a staging site, since this is a quick fix that has not been fully tested. Thank you.

    Kind regards,
    Joost

    • This reply was modified 1 year, 4 months ago by Syde Joost.
    • This reply was modified 1 year, 4 months ago by Syde Joost.
    • This reply was modified 1 year, 4 months ago by Syde Joost.

    I am having this exact issue – did the package resolve the issue @gferguson78

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @brightsidecoffee

    I have reviewed other support request regarding this same issue, but we have not received any confirmation from other merchants yet. However, we are confident this will fix the issue for you. Maybe you should test this on a staging site instead?

    We would be happy to hear back from you on your test results.

    Kind regards,
    Joost

    I commented on this and my comment was removed. The patched update fixed the issue.

    Thread Starter gferguson78

    (@gferguson78)

    I’ve reverted back to V2.40 and this has fixed the issue for now. I’ve been unable to check the fix on our testing site as it’s not linked with Shipstation – that’s only linked to our live site. If I get a chance I’ll upload the fix to the live site and test it later today with a single parcel.

    Gordon

    Thanks mate I have reverted back to 2.4 and the issue is resolved.

    I can confirm that the patched v2.4.1 plugin worked for me also on a fairly active production site, with WP 6.4.1 and WC 8.3.0.

    • This reply was modified 1 year, 4 months ago by FADmark. Reason: added more context
    Plugin Support Syde Joost

    (@joostvandevijver)

    Thank you @fadmark for confirming the fix to us! It’s very much appreciated. We don’t have a ShipStation account, so confirming this fix was impossible for us.

    Have no idea why moderator removed my comments from a few days ago… But, downgrading to 2.4.0 did not work for me. Going to try the patched 2.4.1 version, will respond back on success/failure in few days.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @panthar21,

    thank you for your support.

    When you test this, could you also confirm that it also resolved that?the ShipStation tracking data is now automatically transmitted to PayPal?

    We are pretty certain the error will not show, but this item we did not yet get confirmed to be fixed. Thank you.

    Kind regards,
    Joost

    I had the same issue dating back to Nov 20th. I downgraded to v2.4.0 and was able to resend marketplace notifications in Shipstation and it worked. I was also able to resend customer delivery notifications. Please get a working release asap.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Issue with Shipstation Integration’ is closed to new replies.