Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    15
    Plugin Contributions
    0

    Default 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
    Code:
    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.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,285
    Plugin Contributions
    0

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

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

    get the Debug utility

    http://www.zen-cart.com/forum/announ...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..

  3. #3
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,944
    Plugin Contributions
    5

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

    Quote Originally Posted by jfoster1980 View Post
    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
    Code:
    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
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  4. #4
    Join Date
    Mar 2009
    Posts
    15
    Plugin Contributions
    0

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

    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!

 

 

Similar Threads

  1. Replies: 8
    Last Post: 5 Mar 2009, 06:40 PM
  2. Replies: 6
    Last Post: 21 Sep 2008, 04:48 AM
  3. Parse error: syntax error, unexpected T_STRING in
    By Taysider in forum General Questions
    Replies: 3
    Last Post: 2 Jan 2008, 08:23 PM
  4. Parse error: syntax error, unexpected T_STRING
    By arctic in forum General Questions
    Replies: 3
    Last Post: 2 Oct 2007, 06:46 PM
  5. Parse error: syntax error, unexpected T_STRING
    By SSB in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 12 Oct 2006, 04:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •