Title: Parse error: syntax error, unexpected $end
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected $end

 *  Resolved [Beer](https://wordpress.org/support/users/beer/)
 * (@beer)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-2-2/)
 * I started seeing several of these messages in my error logs with different plugins.
   I tracked it down to an issue with php short tags.
 * Parse error: syntax error, unexpected $end
 * You can manually edit the plugin files that cause the errors by changing every
   occurence of ‘<? ‘ to ‘<?php’
 * You can turn short_open_tag on in php.ini.
    short_open_tag = 1
 * You can set it in the .htaccess file
    php_flag short_open_tag on

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

## Tags

 * [short tags](https://wordpress.org/support/topic-tag/short-tags/)
 * [short_open_tag](https://wordpress.org/support/topic-tag/short_open_tag/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Beer](https://wordpress.org/support/users/beer/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-2-2/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
