Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  Resolved [zenzino](https://wordpress.org/support/users/zenzino/)
 * (@zenzino)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-29/)
 * I am using WordPress 3.3.2 and slightly modified a theme (colors and some positioning)
   called Expositio by WPShower. I set it up locally using MAMP and got everything
   working to perfection. When I loaded it onto my server and tried to activate 
   the theme I got:
 * > Parse error: syntax error, unexpected T_STRING in /doncrosslandphoto.com/wp-
   > content/themes/expositio/includes/theme_options.php on line 1
 * I looked at the theme_options.php file and line one is “<?php” obviously that
   line is not the problem.
 * I had to uninstall/reinstall WordPress because I would even get the error trying
   to access the dashboard.
 * Any idea why this is not working online but works perfectly locally using MAMP?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-29/#post-2761465)
 * My guess would be that the line ending character(s) are different on your local
   machine than on the server and were not converted.
 * Apple uses a ‘carriage return’ character and Linux uses a ‘line feed’ character.
 * Maybe some Apple guru can tell you what to do.
 *  Thread Starter [zenzino](https://wordpress.org/support/users/zenzino/)
 * (@zenzino)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-29/#post-2761502)
 * I found the answer on the theme forum.
 * For some reason when the theme is uploaded via ftp it’s prone to the error. But
   when it is zipped and uploaded through the dashboard, it fixes the problem.
 * That makes absolutely no sense to me but it worked so I’m not complaining.
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-29/#post-2761505)
 * It probably works because the zipped file goes through a different end-of-line
   conversion.
 * If your problem has been solved, please use the dropdown on the right to mark
   this topic ‘Resolved’ so that anyone else with this question can see that there
   is a solution.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-29/#post-2761505)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
