Support » Plugin: Thank Me Later » unexpected T_FUNCTION Message.php on line 505

  • Resolved 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?

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



    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 for your reply, Brendon.

    I will wait for your patch 🙂

    Maybe the selected answer in this link can be of any assistance:

    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 🙂


    Same problem for many users, May be here also they find the solution:

    Plugin Author Brendon Boshell


    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

    So easy!

    Thanks, Brendon!


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