• Resolved zenzino

    (@zenzino)


    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)
  • 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

    (@zenzino)

    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.

    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.