Title: Parse Error on Activate Plugin
Last modified: May 1, 2017

---

# Parse Error on Activate Plugin

 *  [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * (@thefriendlancer)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-on-activate-plugin/)
 * Hi Plugin Author,
 * We are encountering the below error for our new WordPress sites.
    We encounter
   the error when we initiated activation of the plugin.
 * > Parse error: syntax error, unexpected T_FUNCTION in /home/sampleacc/public_html/
   > _site/wp-content/plugins/wp-power-stats/admin/vendor/tabgeo_country_v4/tabgeo_country_v4.
   > php on line 23
 * Important Note:
    – This happens for NEW WordPress sites and new plugin activation.–
   We have existing sites with the stats plugin already activated, but it is not
   failing there.
 * Please help1

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [artifex404](https://wordpress.org/support/users/artifex404/)
 * (@artifex404)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-on-activate-plugin/#post-9087842)
 * What version of PHP do you have on this hosting?
 *  Thread Starter [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * (@thefriendlancer)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-on-activate-plugin/#post-9123764)
 * PHP 5.2 – Is that still being supported?
 *  Plugin Author [artifex404](https://wordpress.org/support/users/artifex404/)
 * (@artifex404)
 * [9 years ago](https://wordpress.org/support/topic/parse-error-on-activate-plugin/#post-9123873)
 * No, this version of PHP is not officially supported. It might work with it, but
   there might be issues.
 * I would recommend upgrading your PHP version. That version of PHP is over 6 years
   old: no security or bugfixes are released for that version anymore.
 * Have a look at WordPress requirement recommendations: [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse Error on Activate Plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-power-stats_f8f8f8.svg)
 * [WP Power Stats](https://wordpress.org/plugins/wp-power-stats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-power-stats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-power-stats/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-power-stats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-power-stats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-power-stats/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [artifex404](https://wordpress.org/support/users/artifex404/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/parse-error-on-activate-plugin/#post-9123873)
 * Status: not resolved