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
    725
    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
    725
    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. Replies: 7
    Last Post: 20 Jul 2007, 05:20 AM
  2. Replies: 4
    Last Post: 29 Sep 2006, 02:24 AM
  3. Urgent Help needed!
    By adnimas5 in forum Upgrading from 1.2 to 1.3.x
    Replies: 30
    Last Post: 8 Jun 2006, 03:08 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
  •