Do you have questions ? We got the answers!

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

Open 2 Answers 3034 Views Web Design

I am getting this error in my WordPress website after opening my site.

Parse error: syntax error, unexpected T_FUNCTION in /home/users198/public_html/ on line 505

This problem came after I updated the WordPress plugin. How to recover my website/blog?


2 Answers


As the error suggests, it is a problem related to thank me later WordPress Plugin. I guess, you have updated the Thank Me Later plugin and since the problem occurs.

For the time being, you need to deactivate this plugin and I guess you are not able to login to your dashboard also. So, login to your CPanel first and go to wp-content/plugins page and compress the Thank me later plugin files. After this, delete the original Thank me later file.

Now try to go to your website/wp-admin/plugins page. It will open now. Go to cpanel again and extract the compressed Thankmelater plugin files and delete the compressed one. Now refresh the Wordpress admin/plugins dashboard. You will find your Thank me later plugin but it wil be deactivated.

Don't activate it now, wait for the next update from the plugin author.

answered Jan 14, 2013 by DrPremJ Guru (17,360 points)

Revert back the plugin to older version: Go to this page:

Download the previous versrion of plugin file and upload into your wordpress plugin directory. It will work!

answered Jan 17, 2013 by Ramz Guru (25,950 points)
Copyright © 2013 -; user contributions licensed under Creative Commons License with attribution required.