Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Plugin Contributions
    0

    xhtml problem Parse error: syntax error, unexpected T_STRING

    I've got a syntax error, and I cannot find out what's wrong. I've dobbel checked everything probably 25 times.....

    So I would be most greatefull if someone could help me

    Error message:

    Parse error: syntax error, unexpected T_STRING in public_html/shop/includes/languages/english/create_account.php on line 27

    Line 27:

    define('EMAIL_COUPON_REDEEM', '' . TEXT_GV_REDEEM . ' <strong>%s</strong>' "\n\n");


    Thanks!

  2. #2
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Parse error: syntax error, unexpected T_STRING

    You start with a double quote (") here -

    define('EMAIL_COUPON_REDEEM', ''

    and end with a single quote (') here

    </strong>'

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected T_STRING

    Thanks! but I still get the same error message..... I've tried different alternatives now, are some of the alternatives below what you ment? Or am I completely lost????

    alt 1. define('EMAIL_COUPON_REDEEM', ' ' . TEXT_GV_REDEEM . ' <strong>%s</strong> ' ' "\n\n");

    alt 2. define('EMAIL_COUPON_REDEEM', '' . TEXT_GV_REDEEM . ' <strong>%s</strong> '' "\n\n");

    alt 3. define('EMAIL_COUPON_REDEEM', ' . TEXT_GV_REDEEM . ' <strong>%s</strong> ' "\n\n");

  4. #4
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Parse error: syntax error, unexpected T_STRING

    Should have added a bit more detail, Any use of quote marks must be balanced; there must be an opening and a closing quote or double quote.

    Immediately after the statemtn of what you are defining 'EMAIL_COUPON_REDEEM', there is either a double quote or 2 single quotes " This serves no purpose.

    I suspect you are trying to create this -

    define('EMAIL_COUPON_REDEEM', TEXT_GV_REDEEM . ' <strong>&#37;s</strong>' "\n\n");

 

 

Similar Threads

  1. 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
  2. Replies: 20
    Last Post: 21 Nov 2010, 02:48 AM
  3. Replies: 9
    Last Post: 5 Feb 2010, 01:12 AM
  4. Replies: 8
    Last Post: 5 Mar 2009, 06:40 PM
  5. Replies: 6
    Last Post: 21 Sep 2008, 04:48 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