WordPress.org

Ready to get started?Download WordPress

Forums

Thank Me Later
[resolved] unexpected T_FUNCTION Message.php on line 505 (7 posts)

  1. Sven D.
    Member
    Posted 1 year ago #

    Just updated this great plugin, and got a 500 server error with this in the error_log:

    PHP Parse error: syntax error, unexpected T_FUNCTION in /home/****/public_html/wp-content/plugins/thank-me-later/Message.php on line 505

    I guess the problem is caused by this line:

    usort($posts, function ($a, $b)

    Any solution to this?

    http://wordpress.org/extend/plugins/thank-me-later/

  2. Brendon Boshell
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    The plugin will require PHP 5.3 or above, as closures are not available in previous versions of PHP.

    WordPress should have automatically disabled the plugin for you. If you can install the latest version of PHP, the plugin should work. Otherwise, I recommend you re-install Thank Me Later 2.1 and continue using that.

    I should be able to solve this issue and make the plugin back-compatible -- I will try to release a patch in the next few days.

    Thanks,
    Brendon.

  3. Sven D.
    Member
    Posted 1 year ago #

    Thanks for your reply, Brendon.

    I will wait for your patch :)

    Maybe the selected answer in this link can be of any assistance:
    http://stackoverflow.com/questions/4949573/parse-error-syntax-error-unexpected-t-function-line-10-help

  4. PTaubman
    Member
    Posted 1 year ago #

    Thanks for being so responsive, Brendon!

    Where can we download the prior version? My hosting company is not on 5.3, so I need to get a clean verifiable copy of v 2.1.

    I am always leery to download a plugin from some mirrored site with who knows what is on there :-)

    Thanks.
    Paul.

  5. pythonskynet
    Member
    Posted 1 year ago #

    Same problem for many users, May be here also they find the solution:
    http://qstacks.com/?qa=406/syntax-error-unexpected-t_function-content-plugins-message

  6. Brendon Boshell
    Member
    Plugin Author

    Posted 1 year ago #

    You can download previous version from this page under 'Other versions'.

    You can simply delete the current thank-me-later directory you have in /wp-content/plugins and replace it with the the thank-me-later directory included in thank-me-later.2.1.zip.

  7. PTaubman
    Member
    Posted 1 year ago #

    So easy!

    Thanks, Brendon!

    Paul.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.