Title: Error when activating the plugin
Last modified: August 31, 2016

---

# Error when activating the plugin

 *  Resolved [Kirr](https://wordpress.org/support/users/kirr/)
 * (@kirr)
 * [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/)
 * When I trying to activate the plugin I’m getting this:
    ——- Plugin could not 
   be activated because it triggered a **fatal error**.
 * **Parse error**: syntax error, unexpected ‘[‘, expecting ‘)’ in **/…SKIP…/wp-
   content/plugins/plugin-grouper/autoload.php** on line **25**
    ——- 🙁 All other
   plugins are deactivated.
 * [https://wordpress.org/plugins/plugin-grouper/](https://wordpress.org/plugins/plugin-grouper/)

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

 *  Thread Starter [Kirr](https://wordpress.org/support/users/kirr/)
 * (@kirr)
 * [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/#post-7385566)
 * UPD:
    PHP version is 5.3.29
 *  Thread Starter [Kirr](https://wordpress.org/support/users/kirr/)
 * (@kirr)
 * [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/#post-7385570)
 * Just updated plugin to new version 3.0.2.
 * Things became slightly different though still with no luck. =(
    I’ve got this
   when activating the plugin: ——- Plugin could not be activated because it triggered
   a fatal error.
 * **Parse error**: syntax error, unexpected ‘[‘ in **/…SKIP…/wp-content/plugins/
   plugin-grouper/classes/Group.php** on line **295**
    ——-
 *  Thread Starter [Kirr](https://wordpress.org/support/users/kirr/)
 * (@kirr)
 * [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/#post-7385572)
 * Seem like the culprit is a pretty old PHP on my hosting which doesn’t support
   the short syntax for arrays.
 * The problem is that I hardly can enforce my hoster to upgrade PHP in the near
   future. And there is fact that I have over 30 plugins on my WP and they don’t
   suffer from that error. So I hope there can be an update for the plugin to make
   it work on old PHPs. =)
 *  Thread Starter [Kirr](https://wordpress.org/support/users/kirr/)
 * (@kirr)
 * [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/#post-7385590)
 * Well… =)
    I changed `$plugins_ =[];` to old fashioned `$plugins_ = array();` 
   in that line 295 and it began to work! 🙂
 *  Thread Starter [Kirr](https://wordpress.org/support/users/kirr/)
 * (@kirr)
 * [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/#post-7385710)
 * Update to version 3.0.3 fixed the bug.
    Thank you!

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

The topic ‘Error when activating the plugin’ is closed to new replies.

 * ![](https://ps.w.org/plugin-grouper/assets/icon-256x256.png?rev=1266171)
 * [Plugin Manager](https://wordpress.org/plugins/plugin-grouper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-grouper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-grouper/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-grouper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-grouper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-grouper/reviews/)

 * 5 replies
 * 1 participant
 * Last reply from: [Kirr](https://wordpress.org/support/users/kirr/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-9/#post-7385710)
 * Status: resolved