On a fresh installation of X-Cart with exCheckout installed I receive this error when ever trying to login / logout of customer and admin:
Code:
Parse error: parse error, unexpected '}' in W:\www\dev\include\login.php on line 203
line number changes between 201 and 203 depending if there is a white space before the code is modified.
The code in question is:
Code:
[b]Find[/b]
if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) {
func_header_location($redirect_to."/cart.php");
} else {
func_header_location($redirect_to."/cart.php?mode=checkout");
}
[b]Replace With[/b]
if ($login_type == "C" || $login_type == "B") {
if($redirect2 == "checkout") {
func_header_location($redirect_to."/cart.php?mode=checkout")
} elseif (!func_is_cart_empty($cart)) {
if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) {
func_header_location($redirect_to."/cart.php");
} else {
func_header_location($redirect_to."/cart.php?mode=checkout");
}
It is with the replacement code that the problem is occuring. This error has now happened on two versions of fresh installs of X-Cart when testing to check I was double sure.
Ian[/b][/code]