Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

syntax error in admin english.php file


Guest

Recommended Posts

Posted

Hi my website has been merrily working away, today all of sudden there was a syntax error in the header_tags file (which I've found and fixed) and now one in the admin english.php file which I can't work out. Hopefully someone might be able to help me out. The error reads:

 

Parse error: syntax error, unexpected T_STRING in /home/greengum/public_html/admin/includes/languages/english.php on line 132

 

and line 132 in that file is:

 

define('JS_GENDER', '* The 'Gender' value must be chosen.n');

 

Can anyone see what is wrong with that line? Also does anyone have any suggestions why these errors are suddenly popping up when I haven't changed anything on my website?

 

Thanks in advance!

Posted

define('JS_GENDER', '* The \'Gender\' value must be chosen.n');

 

If you use apostrophies in text you have to escape them with \

 

e.g. you\'re

Posted
define('JS_GENDER', '* The \'Gender\' value must be chosen.n');

 

If you use apostrophies in text you have to escape them with \

 

e.g. you\'re

 

Thank you, problem fixed! I couldn't see it for looking :blush:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...