Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in create account


CompatibleCarts

Recommended Posts

Posted

Hi,

 

I just intalled the PWA (purchase without account) contribution and whenever someone now tries to create and account this error message comes up:

 

Parse error: parse error, unexpected T_ELSE in /var/www/html/create_account.php on line 120

 

This is the part of the file with line 120 (highlighted in red) in it

 

$error = true;

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);

} else {

tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . $customer_id . "'");

}

}

// END

} else {

tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . $customer_id . "'");

tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . $customer_id . "'");

}

}

// END

}

if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {

$error = true;

 

Can anyone see what is wrong please?

 

Many thanks

 

Ed

Posted

Impossible to tell with just that extract I think.

 

It is saying it does not expect the "else" statement so your syntax is wrong somewhere as it obviously thinks the If statement is complete before it gets to that so I suspect one too many "}.

 

Did you add these lines in yourself? In which case it might be easier just to do that again and be more careful ...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...