WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Relocate Upload] Parse error: syntax error, unexpected $end (4 posts)

  1. anmari
    Member
    Posted 5 years ago #

    Main version has a parse error:

    Parse error: syntax error, unexpected $end in C:\web\wptest\wp-content\plugins\relocate-upload\relocate-upload.php on line 226

    http://wordpress.org/extend/plugins/relocate-upload/

  2. alanft
    Member
    Posted 5 years ago #

    can you just double-check that you have a complete PHP file - i'm not on the main 0.11 version to check right away, but i don't recall there being a general issue as serious as that with that version.

  3. kassiopeia
    Member
    Posted 5 years ago #

    I have the same problem. It has to do with the "short_open_tag" configuration setting not being allowed and the script having several instances of it starting on line#87 - line #209. To fix use a text editor and replace all instances of <? with <?php . Make sure you don't end up with <?phpphp ........ :(

    btw: the version available on wordpress/plugins is only 0.10.

  4. alanft
    Member
    Posted 5 years ago #

    *blush* yes i am very rubbish/lazy always doing short tags

    i will update that in the dev and commit it very shortly

Topic Closed

This topic has been closed to new replies.

About this Topic