I’m having the same error. Can ‘t access dashboard.
Parse error: syntax error, unexpected T_FUNCTION in /home/mbac/domains/missionbayaquaticcenter.com/public_html/news/wp-content/plugins/top-10/admin/class-stats.php on line 556
Please help!
-
This reply was modified 9 years, 8 months ago by
rowman25.
Same error, yesterday a update came but still doesn’t work. 🙁
Why you update actually working plugin?
Parse error: syntax error, unexpected T_FUNCTION in wp-content/plugins/top-10/admin/class-stats.php on line 556
Plugin Author
Ajay
(@ajay)
Hi, this is possibly because you’re running very old versions of PHP likely before 5.3. In this case, it is recommended that you upgrade PHP.
If you’re unable to do so, for now, please edit wp-content/plugins/top-10/admin/class-stats.php and delete the lines from 556 onwards
i.e. these three lines:
add_action( 'plugins_loaded', function () {
Top_Ten_Statistics::get_instance();
} );
v2.4.2 should fix this error.