Zen Cart Logo
Forums / General Questions / PHP Parse error: syntax error, unexpected T_STRING in /create_account.php line 423

PHP Parse error: syntax error, unexpected T_STRING in /create_account.php line 423

Locked

Views: 18,635

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 Mar 2009, 3:24 PM
#1
jfoster1980 avatar

jfoster1980

New Zenner

Join Date:
Mar 2009
Posts:
15
Plugin Contributions:
0

PHP Parse error: syntax error, unexpected T_STRING in /create_account.php line 423

I must have messed up my site pretty good because after I changed some things in the create account process nothing major just names and headings of fields. when you create and account you get a blank white page from the error log I get this:

PHP Parse error: syntax error, unexpected T_STRING in /home/jfoster1980/qcsweets.com/includes/languages/english/create_account.php on line 423

I look on line 423 from dreamweaver and it shows this
```
zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));

} //endif !error <------- That is Line 423
}


I have tried reuploading the original file but nothing seems to work. What am I missing? This worked before I started changing things so im pretty sure its my fault even though it was just adding text.
13 Mar 2009, 3:59 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: PHP Parse error: syntax error, unexpected T_STRING in /create_account.php line 423

create_account.php in english folder dosen't have that many line ..

get the Debug utility

http://www.zen-cart.com/forum/announcement.php?f=134&a=12

and see why you getting that error ..

that usually , either space between <?php like <? php
or missing { or } in code block .

or your php code is outside of <?php ?> tag..

13 Mar 2009, 4:05 PM
#3
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: PHP Parse error: syntax error, unexpected T_STRING in /create_account.php line 423

jfoster1980:

I must have messed up my site pretty good because after I changed some things in the create account process nothing major just names and headings of fields. when you create and account you get a blank white page from the error log I get this:

PHP Parse error: syntax error, unexpected T_STRING in /home/jfoster1980/qcsweets.com/includes/languages/english/create_account.php on line 423

I look on line 423 from dreamweaver and it shows this
```
zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));

} //endif !error <------- That is Line 423
}

> 
> I have tried reuploading the original file but nothing seems to work. What am I missing? This worked before I started changing things so im pretty sure its my fault even though it was just adding text.

Are you sure that you're looking in the right place for the error?
The error code you posted says the error is in the file includes/languages/english/create_account.php but that file shouldn't contain any procedural code like the zen_redirect that you posted for the problem line (and it hasn't got anywhere near that many lines). The code you posted is more likely to be in includes/modules/your_template/create_account.php

if the error is in fact in your module create_account file, please post the section of code for the 10 previous lines as well
13 Mar 2009, 4:20 PM
#4
jfoster1980 avatar

jfoster1980

New Zenner

Join Date:
Mar 2009
Posts:
15
Plugin Contributions:
0

Re: PHP Parse error: syntax error, unexpected T_STRING in /create_account.php line 423

Ok I figured out the problem its just me leaping before I look. Looks like I had the wrong file overwritten must have made that mistake when using ftp! Thanks for the help!