Ordering more than in stock results in a 404 error (v. 2.93)
When a customer orders more than is in stock, they are returned back to the site and an error message displayed. However, in some cases, that page URL may not be correct. To fix this, open the order.php file in the /go/ folder, and change the code (around line 74):
$errseparator = strpos($errreturn, '?' === false) ? '?' : '&';
to:
$errseparator = str_replace('?', '', $errreturn) ? '?' : '&';