Parse error: syntax error, unexpected T_STRING
Started 4 years ago by jmcleod | 2 posts |
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['label'] = "Cameroon";
Which is two lines away from Central African Republic. I did not edit Cameroon at all.
Please help!Posted 4 years ago #
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 4 years ago #
You must log in to post.