• Resolved Sven D.

    (@sven-d)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brendon Boshell

    (@bbosh)

    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.

    Thread Starter Sven D.

    (@sven-d)

    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

    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.

    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

    Plugin Author Brendon Boshell

    (@bbosh)

    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.

    So easy!

    Thanks, Brendon!

    Paul.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘unexpected T_FUNCTION Message.php on line 505’ is closed to new replies.