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,279
    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,945
    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. PHP Parse error: syntax error, unexpected T_STRING
    By absoluteblock in forum General Questions
    Replies: 4
    Last Post: 2 Oct 2011, 03:40 AM
  2. PHP Parse error: syntax error, unexpected T_STRING
    By derek53 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2011, 08:09 PM
  3. Replies: 20
    Last Post: 21 Nov 2010, 02:48 AM
  4. syntax error, unexpected T_STRING in ipn_main_handler.php
    By saplanet in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 3 Oct 2010, 01:52 AM
  5. unexpected T_STRING error in create_account.php
    By LadyHLG in forum General Questions
    Replies: 0
    Last Post: 13 Mar 2007, 05:05 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR