10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.25k stars 312 forks source link

Strange JSON error on woocommerce place order #3014

Closed jeremylugros closed 2 years ago

jeremylugros commented 2 years ago

Hi team, after the plugin was installed, synced, and configured, we have tested and found an error when order was placed on checkout page. The page started loading, and then the session expired right after. The developer console shows and error on the request response, of an unexpected character on the JSON data. Analyzing the response, the order was successfully placed, but all the order-received page content was coming with the usual json response.

For example, this would be the usual response:

{"result":"success","redirect":"https:\/\/www.yyyyy.com.br\/checkout\/order-received\/2270151\/?key=wc_order_uQbacazevG9dJ","order_id":2270151}

But then, the response was:

{"result":"success","redirect":"https:\/\/www.yyy.com.br\/checkout\/order-received\/2270152\/?key=wc_order_NpeVJElsIncrV","order_id":2270152}