Hi
This problem occurs for php less than 5.4 and with the short_open_tag option turned off.
To solve this problem, you can enable short_open_tag or upgrade the php version to 5.4 or higher.
Changing php options.
For the Apache2 web server, you need to add a following line to the .htaccess file in your wordpress directory
Code:
php_flag short_open_tag On
For nginx/php-fpm see php.ini file.
I hoped that i really helped you.