This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Parse error: syntax error, unexpected T_STRING


  1. jmcleod
    Member

    I needed to add Cayman Islands to my country list. I wasn't sure exactly how to add it, so instead I replaced Central African Republic with Cayman Islands. I did this in both label and country strings. I didn't touch anything else. After upload I get the error: "Parse error: syntax error, unexpected T_STRING in /home/registry/public_html/machform/includes/view-functions.php on line 2749".

    Line 2749: $country[35]['label'] = "Cameroon";

    Which is two lines away from Central African Republic. I did not edit Cameroon at all.

    Please help!

    Posted 8 years ago #
  2. jmcleod
    Member

    I learned something today... I edited the php file with textedit. I just got a mac and I thought that textedit was the equivalent of notepad. I decided to open the file in textwrangler to see if I did something wrong. Sure enough, it was the tick marks. The " was a different kind. It almost looked like a different font. That is what caused my problem. I edited it in textwrangler and all is well. I hope this helps someone!

    Posted 8 years ago #

RSS feed for this topic

Reply