Internal Server Error
-
I have a site that is setup to use the sandbox at Square. The site is not setup to access a normal Square account, just the sandbox. It uses the free version of WooSquare. When paying for an order at checkout, everything seems to work, but at the end, the checkout page displays “Internal Server Error” instead of a success message. Orders were created in Square and in WooCommerce and seem okay.
I have tried recreating the tokens in Square, and restarting the browser, but the problem still occurs. I noticed in Square for developers that the Redirect URL is not set in the OAuth section. Does it need to be? If so, what should it be set to? Any other ideas about what could be causing the error?
Log info:
Request URL: https://test.com/?wc-ajax=checkout
Request Method: POST
Status Code: 500 Internal Server ErrorThe WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency.
id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WooSquare_Gateway->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
WooCommerce version: 4.0.1
WooSquare 3.6.2
WordPress version: 5.4
Server info: Microsoft-IIS/8.5
PHP version: 7.2.1
- The topic ‘Internal Server Error’ is closed to new replies.