Title: Fatal error when activating plugin
Last modified: August 22, 2016

---

# Fatal error when activating plugin

 *  Resolved [yellowscottt](https://wordpress.org/support/users/yellowscottt/)
 * (@yellowscottt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/)
 * Hello, I am getting the fatal error:
 * Parse error: syntax error, unexpected ‘[‘ in /home/site/public_html/wp-content/
   plugins/wpsolr-search-engine/class-wp-solr.php on line 670
 * when trying to activate the plugin. I am new to solr so I am at a loss.
 * Thanks for your help.
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

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

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777273)
 * Can you give me more details about your environment ?
 * => versions of OS, WordPress, PHP
 *  Thread Starter [yellowscottt](https://wordpress.org/support/users/yellowscottt/)
 * (@yellowscottt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777285)
 * CentOS 6.6 64 bit
    WordPress 3.8.3 PHP Version 5.3.29
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777300)
 * Found the issue.
 * The line 670:
    `$lastPostDate = end( $ids_array )['post_modified'];`
 * is valid in PHP5.4, not 5.3 (array dereference on call).
 * I’ll quickly deliver a new version.
 *  Thread Starter [yellowscottt](https://wordpress.org/support/users/yellowscottt/)
 * (@yellowscottt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777313)
 * Amazing, thank you.
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777324)
 * There’s a new WPSOLR 2.1 version, which should solve your issue.
 * Please try and tell me if it’s ok now.
 *  Thread Starter [yellowscottt](https://wordpress.org/support/users/yellowscottt/)
 * (@yellowscottt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777331)
 * A new error that didn’t appear before is showing now on activation:
 * Parse error: syntax error, unexpected ‘[‘ in /home/site/public_html/wp-content/
   plugins/wpsolr-search-engine/classes/extensions/wpsolr-extensions.php on line
   38
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777344)
 * Same issue.
 * I’ve checked every file with PHP 5.3 inspector, and updated WPSOLR 2.1 accordingly.
 * Should be good now.
 *  Thread Starter [yellowscottt](https://wordpress.org/support/users/yellowscottt/)
 * (@yellowscottt)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777362)
 * Thanks for the great support.

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

The topic ‘Fatal error when activating plugin’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [yellowscottt](https://wordpress.org/support/users/yellowscottt/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-20/#post-5777362)
 * Status: resolved