• Resolved The Rite Sites

    (@theritesites)


    Hi!
    I have a plugin that uses the action ‘woocommerce_shipstation_shipnotify’ to retrieve and save what stores spent on shipping and add it to reporting.

    Some of the stores I support have an issue where the XML comes back from
    WC_Shipstation_API_Shipnotify::get_raw_post_data()
    with a “blank body” resulting in logs stating that “Missing ShipNotify XML input.”

    In the code, it links to the old github repository for this project with a noted issue. I have been using this plugin since well before it got to the wordpress.org repository but the documented issues dont seem to have made it over here. Can we reopen this issue?

    I have been doing some debugging and the issue is not within a WP, WC, WC-shipstation-integration version mismatch, as I can have multiple stores on the exact same versions as the “broken” client website and only the client website has the issue.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @theritesites

    I’ve had a search through for this and found this Issue, specifically this comment – https://github.com/woocommerce/woocommerce-shipstation/issues/80#issuecomment-500458829

    Is that the Issue referenced?

    as I can have multiple stores on the exact same versions as the “broken” client website and only the client website has the issue.

    To confirm – you can have two sites perform the same request but only the client site exhibits the problem? If so, it sounds like something else on that site is causing the conflict here.

    Reading through the GitHub issue I linked to, it sounds like the response is in the incorrect format – can I ask you to read through that Issue and see if it helps your scenario, please?

    Thanks,

    Thread Starter The Rite Sites

    (@theritesites)

    Hey Dougaitken,

    That is the issue I was referencing, but that link is removed to the public if there is content still there.

    That being said, as I have been chasing this issue down for a while, yesterday we think we were able to figure it out!

    I found elsewhere that when working with file_get_contents( ‘php://input’ ) calls, redirects (can) wipe out the request data. Someone mentioned the Shipstation setup has one manually input their URL in shipstation, including http/https protocols.

    This specific client had http://URLhere.com when their server was forcing https://URLhere.com, causing a redirect and wiping out Shipstation’s request BODY, which houses the XML. The tracking and order information still came over fine since they were also being passed by URL it seems. This data included Order #, tracking information, shipping carrier, and would mark orders complete with most of the applicable data.

    Thanks for following up!

    Cheers,
    The Rite Sites

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

The topic ‘Shipnotify always receiving blank xml’ is closed to new replies.