Title: Plugin Activation Error
Last modified: August 22, 2016

---

# Plugin Activation Error

 *  Resolved [amathur](https://wordpress.org/support/users/amathur/)
 * (@amathur)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/)
 * I am getting the following error when activating the plugin on a clean install
   of WordPress 4.0.1
 * Parse error: syntax error, unexpected ‘[‘ in xxx/site/wp-content/plugins/wpsolr-
   search-engine/class-wp-solr.php on line 640
 * Environment:
    CentOS Linux 6.5 PHP Version 5.3.3
 * Please check and help in resolving this issue.
 * Regards,
    Anuj.
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

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

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/#post-5731923)
 * Hi,
 * We solved some issues with CentOS SELinux security that could be related to yours.
 * Please see [https://wordpress.org/support/topic/wpsolar-unable-to-to-connect](https://wordpress.org/support/topic/wpsolar-unable-to-to-connect)
 *  [ndesign55](https://wordpress.org/support/users/ndesign55/)
 * (@ndesign55)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/#post-5731948)
 * Did you find your answer amathur,
    I cannot activate due to this error below.
   BTW im running CentOS Linux as well…please advise?
 * Plugin could not be activated because it triggered a fatal error.
    `Parse error:
   syntax error, unexpected '[' in /xxxxxx/wp-content/plugins/wpsolr-search-engine/
   class-wp-solr.php on line 651`
 * NOTE: My apachesolr is stable and being ran on the same server connected to Drupal
   on collection1. I have created collection2 for WordPress with no issues there
   either.
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/#post-5731949)
 * Could be related too: [indexing-pdf-attachments-not-working](https://wordpress.org/support/topic/indexing-pdf-attachments-not-working)
 *  [ndesign55](https://wordpress.org/support/users/ndesign55/)
 * (@ndesign55)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/#post-5731950)
 * Just tried activating plugin on new install WP4.1 with same error. No indexing
   of PDF attachments on Apache Solr.
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/#post-5731968)
 * WPSOLR 2.1 should solve your issue. Was related to PHP < 5.4
 * See WPSOLR 1.2 should solve your issue. Was a syntax problem with PHP 5.3
 * See [fatal-error-when-activating-plugin](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20)

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

The topic ‘Plugin Activation Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-8-2/#post-5731968)
 * Status: resolved