Title: Parse error: syntax error, unexpected &#8216;[&#8216;
Last modified: June 7, 2017

---

# Parse error: syntax error, unexpected ‘[‘

 *  Resolved [Tim](https://wordpress.org/support/users/bloxblox/)
 * (@bloxblox)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-199/)
 * Everything is up to date. WP 4.7.5; all plugins and themes up to date.
 * Just after installing, I get the following error:
 * > Plugin could not be activated because it triggered a fatal error.
   >  Parse error:
   > syntax error, unexpected ‘[‘ in /public_html/wp-content/plugins/wp-google-analytics-
   > events/includes/functions.php on line 158
 * Sure enough, when I look at line 158, I see this:
 * `$extracted = [`
 * The plugin will not activate, so is currently not usable.
 * The rest of the site seems unaffected (since it won’t activate with the error).
 * Any ideas?
 * Thanks
    Tim

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

 *  Plugin Author [yuvalo](https://wordpress.org/support/users/yuvalo/)
 * (@yuvalo)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-199/#post-9204666)
 * Hi [@bloxblox](https://wordpress.org/support/users/bloxblox/)
 * I’m guessing that you are running with an old version of PHP.
    Can you check 
   wich one?
 * Yuval
 *  Thread Starter [Tim](https://wordpress.org/support/users/bloxblox/)
 * (@bloxblox)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-199/#post-9204966)
 * PHP 5.3.29
 * So yeah, old.
 * No my server. Didn’t think to check.
 * I’ll have to do without for this project.
 * Thanks anyway.

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

The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-analytics-events/assets/icon-256x256.jpeg?rev=
   2189709)
 * [WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics](https://wordpress.org/plugins/wp-google-analytics-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-analytics-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-analytics-events/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-analytics-events/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tim](https://wordpress.org/support/users/bloxblox/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-199/#post-9204966)
 * Status: resolved