Title: Unable to activate plugin &#8211; PHP parse error
Last modified: February 1, 2018

---

# Unable to activate plugin – PHP parse error

 *  [mwatt](https://wordpress.org/support/users/mwatt/)
 * (@mwatt)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/unable-to-activate-plugin-php-parse-error/)
 * The plugin installs fine on a localhost setup but when I try to activate it I
   get a fatal error message: Parse error: syntax error, unexpected ‘[‘ in …\htdocs\
   wordpress\wp-content\plugins\wc-category-locker\classes\class-wc-dependencies.
   php on line 19.

Viewing 1 replies (of 1 total)

 *  [richardmd](https://wordpress.org/support/users/richardmd/)
 * (@richardmd)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/unable-to-activate-plugin-php-parse-error/#post-9949909)
 * Sadly no answers from me. Though I am having the same issue. Looking forward 
   to an answer.

Viewing 1 replies (of 1 total)

The topic ‘Unable to activate plugin – PHP parse error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-category-locker_3993b5.svg)
 * [WooCommerce Category Locker](https://wordpress.org/plugins/wc-category-locker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-category-locker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-category-locker/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-category-locker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-category-locker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-category-locker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [richardmd](https://wordpress.org/support/users/richardmd/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/unable-to-activate-plugin-php-parse-error/#post-9949909)
 * Status: not resolved