• Resolved spykekrepshaw

    (@spykekrepshaw)


    Checkout fails every time an order is placed. When I try to access the Square settings within WooCommerce I am presented with the following error message.

    You can replicate by adding an item to the cart and trying to checkout.

    Fatal error: Uncaught TypeError: Return value of Unirest\HttpClient::execute() must be an instance of CoreInterfaces\Core\Response\ResponseInterface, instance of Unirest\Response returned in /home/customer/www/newtrailbrewing.com/public_html/wp-content/plugins/woocommerce-square/vendor/apimatic/unirest-php/src/HttpClient.php:79 Stack trace: #0 /home/customer/www/newtrailbrewing.com/public_html/wp-content/plugins/woocommerce-square/vendor/apimatic/core/src/ApiCall.php(48): Unirest\HttpClient->execute(Object(Core\Request\Request)) #1 /home/customer/www/newtrailbrewing.com/public_html/wp-content/plugins/woocommerce-square/vendor/square/square/src/Apis/BaseApi.php(34): Core\ApiCall->execute() #2 /home/customer/www/newtrailbrewing.com/public_html/wp-content/plugins/woocommerce-square/vendor/square/square/src/Apis/LocationsApi.php(34): Square\Apis\BaseApi->execute(Object(Core\Request\RequestBuilder), Object(Core\Response\ResponseHandler)) #3 [internal function]: Square\Apis\LocationsApi->listLocations() #4 /home/customer/www/ne in?/home/customer/www/newtrailbrewing.com/public_html/wp-content/plugins/woocommerce-square/vendor/apimatic/unirest-php/src/HttpClient.php?on line?79

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

Viewing 1 replies (of 1 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @spykekrepshaw

    The error message you posted suggests there might be a conflict between the Square plugin and another plugin or theme on your site.

    Here are a few steps to troubleshoot this issue:

    1. Disable all other plugins. This will help determine if the error is being caused by a conflict with another plugin. If the error disappears after disabling all other plugins, enable them one by one until the error reappears. This will help identify the conflicting plugin.
    2. If the error persists after disabling all other plugins, try switching to a default theme like Storefront. If the error disappears after switching themes, the problem is likely with your current theme.
    3. Ensure that your WooCommerce Square plugin is updated to the latest version. Outdated versions of plugins can often cause conflicts and errors.
    4. The error also might be due to an outdated PHP version. WooCommerce Square requires PHP version 7.4 or higher. You can check your PHP version in the Site Health section of your WordPress dashboard.

    If none of these steps resolve the issue, please provide us with your system status report. You’ll find it at the top of the page under WooCommerce > Status > Get system report > Copy for support (after you scroll down a bit). Once you have the System Status Report file, please send it with your reply.

    Let us know how that goes. Looking forward to helping you.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error when trying to checkout’ is closed to new replies.