Title: Parse error upon activation
Last modified: September 8, 2017

---

# Parse error upon activation

 *  Resolved [ahcj](https://wordpress.org/support/users/ahcj/)
 * (@ahcj)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-upon-activation/)
 * `Parse error: syntax error, unexpected '[' in /home/healthjournalism/public_html/
   blog/wp-content/plugins/moderation-tools-for-bbpress/moderation-tools-bbpress.
   php on line 789`
 * Is this similar to the problem reported here?
    [https://wordpress.org/support/topic/fatal-error-with-1-0-version/](https://wordpress.org/support/topic/fatal-error-with-1-0-version/)
 * If so, please see my reply to that post.

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

 *  Thread Starter [ahcj](https://wordpress.org/support/users/ahcj/)
 * (@ahcj)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-upon-activation/#post-9477939)
 * I see now what it is:
 * `$bbpress_version = explode( '-', bbp_get_version() )[0];`
 * Function array dereferencing is not available until 5.4.
 * So the simple matter of not fetching the array first and then dereferencing on
   the next line prevents many hosts from being able to use this plugin.
 * (Testing this just now, and after that minor change the plugin activates.)
 *  Plugin Author [Digital Arm](https://wordpress.org/support/users/digital-arm/)
 * (@digital-arm)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-upon-activation/#post-9478527)
 * Thanks for bringing this to our attention. We are keen to support older versions
   of PHP where possible so we will look at your suggested solution for the next
   update.
 *  Plugin Author [Digital Arm](https://wordpress.org/support/users/digital-arm/)
 * (@digital-arm)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-upon-activation/#post-9504595)
 * This issue has now been fixed in the 1.0.6 hot fix. Please let us know if you
   continue to experience any problems.

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

The topic ‘Parse error upon activation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/moderation-tools-for-bbpress_36abd6.
   svg)
 * [bbPress - Moderation Tools](https://wordpress.org/plugins/moderation-tools-for-bbpress/)
 * [Support Threads](https://wordpress.org/support/plugin/moderation-tools-for-bbpress/)
 * [Active Topics](https://wordpress.org/support/plugin/moderation-tools-for-bbpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/moderation-tools-for-bbpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/moderation-tools-for-bbpress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Digital Arm](https://wordpress.org/support/users/digital-arm/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-upon-activation/#post-9504595)
 * Status: resolved