If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Parse error: syntax error, unexpected T_STRING

Parse error: syntax error, unexpected T_STRING

Locked

Started by arctic on 2 Oct 2007, 2:48 PM · Views: 1,230

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Oct 2007, 2:48 PM
#1
arctic avatar

arctic

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

Parse error: syntax error, unexpected T_STRING

:oops: 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 :smile:

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 Oct 2007, 2:57 PM
#2
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

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>'

2 Oct 2007, 5:23 PM
#3
arctic avatar

arctic

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

Re: Parse error: syntax error, unexpected T_STRING

Thanks! :smile: 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");

2 Oct 2007, 5:46 PM
#4
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

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>%s</strong>' "\n\n");