2

While configuring custom fields in mantis i got this error message , any idea

Parse error: syntax error, unexpected T_STRING in C:\wamp\www\MyProj\custom_strings_inc.php on line 3

The code is

<?php
if( lang_get_current() == 'german' ) {
    $defect_impact = 'Defect Impact'; #// German translation of Defect Impact
    $defect_type =  'Defect Type'; #// German translation of Defect Type
    $phase_of_origin =  ’Phase Of Origin’; #// German translation of Phase Of Origin
}else{
# Default (use your preferred language as the default)
    $defect_impact = 'Defect Impact'; // German translation of Defect Impact
    $defect_type =  'Defect Type'; // German translation of Defect Type
    $phase_of_origin =  'Phase Of Origin'; // German translation of Phase Of Origin
}
?>
2
  • 2
    Any reason why you use both way to one-line comment ( # and // )? Commented Oct 14, 2011 at 2:57
  • 1
    thank u nettogrof , now using // only Commented Oct 14, 2011 at 3:19

1 Answer 1

9

Wrong quotes on this line:

$phase_of_origin =  ’Phase Of Origin’;

Should be:

$phase_of_origin =  'Phase Of Origin';
Sign up to request clarification or add additional context in comments.

2 Comments

Still i am unable to correct it eventhough teh error line changed now the error msg is "Parse error: syntax error, unexpected T_STRING in C:\wamp\www\XRINFX\custom_strings_inc.php on line 8" the 6,7,8th lines are 6 => }else{ 7=>$defect_impact = 'Defect Impact'; // English translation of Defect Impact 8=>$defect_type = 'Defect Type'; // English translation of Defect Type
Thank you guys , problem solved and you are right...i renamed the project folder (inside www) now it is up and running , only issus is if i use the original name for the folder , error is displayed again , thanks again .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.