Guest Posted January 11, 2005 Posted January 11, 2005 Hi all, When i try to create a new account i get a pop up message with a syntx error on line 113 Char 28. Code 0. Here are the lines from crate_account.php from 105 to 127. if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR); } if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_POST_CODE_ERROR); } if (strlen($city) < ENTRY_CITY_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_CITY_ERROR); } if (is_numeric($country) == false) { $error = true; $messageStack->add('create_account', ENTRY_COUNTRY_ERROR); } I cant figure out what is going on. Any one got an idea. Keep smiling Colin
♥Vger Posted January 11, 2005 Posted January 11, 2005 Well, in the unedited create_account.php that line is blank - so I guess you've been editing it. Quickest way to sort it out is to restore it from an untouched original of that page. Once you've done that - don't edit it using the osCommerce File Manager, it causes parse errors. Download the file (take a backup), then edit in a plain text editor like Notepad, Text Pad or Crimson Editor - don't use Word or Wordpad. Upload, and if it doesn't work - restore from the backup. Vger
Guest Posted January 11, 2005 Posted January 11, 2005 Cheers V. Will give that a go later today. Thanks for the quick reply. Keep smiling. Colin Well, in the unedited create_account.php that line is blank - so I guess you've been editing it. Quickest way to sort it out is to restore it from an untouched original of that page. Once you've done that - don't edit it using the osCommerce File Manager, it causes parse errors. Download the file (take a backup), then edit in a plain text editor like Notepad, Text Pad or Crimson Editor - don't use Word or Wordpad. Upload, and if it doesn't work - restore from the backup. Vger <{POST_SNAPBACK}>
Guest Posted January 11, 2005 Posted January 11, 2005 Hi again. I havent edited that file. As a trial I deleted a couple of lines from near the top. Then tried to create an account again. I got the same message but what is strange is that it was Still on the same line, ie 113. The site is live so im reluctent to post a link on the forum but if anyone is willing to help I could PM the link to the live shop. Cheers All Colin
Recommended Posts
Archived
This topic is now archived and is closed to further replies.