WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Parse error: syntax error, unexpected $end (1 post)

  1. Beer
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic