• I keep getting a:

    Error thrown

    Call to a member function asXML() on bool

    Whenever I try and calculate a shipping cost in the cart.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dan

    (@dangoodman)

    The error means the plugin can’t reach the USPS API server.

    It might be a temporary network connectivity issue. However, if you still see the error, please check your WordPress setup for WP_HTTP_BLOCK_EXTERNAL and WP_ACCESSIBLE_HOSTS settings.

    Thread Starter entreevous

    (@entreevous)

    WP_HTTP_BLOCK_EXTERNAL is not set thus the whitelist for WP_ACCESSIBLE_HOSTS is not set either in the wordpress config file.

    And the crash is still occurring.

    The problem is there’s a hard crash and the cart is then corrupted and inaccessible if the API connection is down. Your error checking should provide a graceful fail if you get an error reply out of the API.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error when you try and’ is closed to new replies.