Title: Parse Error: Syntax Error, Unexpected &#8216;[&#8216;
Last modified: September 24, 2017

---

# Parse Error: Syntax Error, Unexpected ‘[‘

 *  Resolved [W0olnut](https://wordpress.org/support/users/w0olnut/)
 * (@w0olnut)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/)
 * Hey,
 * The plugin for the last few months has been showing the following error message
   when trying to access anything in /wp-admin…
 * > Parse error: syntax error, unexpected ‘[‘ in /home/content/93/11002893/html/
   > wp-content/plugins/team-rosters/includes/mstw-tr-team-roster-admin-class.php
   > on line 718
 * I have taken a look at line 718 in the file mentioned and i can see the following:
 * `$team_slug = each( $_POST )['value'];`
 * This doesn’t look incorrect? Although i am no PHP coder!
 * Thanks!
    -  This topic was modified 8 years, 7 months ago by [W0olnut](https://wordpress.org/support/users/w0olnut/).

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

 *  Thread Starter [W0olnut](https://wordpress.org/support/users/w0olnut/)
 * (@w0olnut)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9536645)
 * If you need anymore information please let me know!
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9537453)
 * Sorry for the delayed response. I’ve been out of town.
 * This is legal syntax. I believe you need to update the version of PHP on your
   site. [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * -Mark
 *  [coachdavies](https://wordpress.org/support/users/coachdavies/)
 * (@coachdavies)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9652779)
 * Hi,
 * My website still works, but this comes up when I try and go on the dashboard 
   or do any edits:
 * Parse error: syntax error, unexpected ‘[‘ in /var/sites/k/kentcrusaders.co.uk/
   public_html/wp-content/plugins/team-rosters/includes/mstw-tr-team-roster-admin-
   class.php on line 718
 * Please help I don’t know what I have done, and I cant do anything on the website.
   
   I see the message above but I don’t really know what to do.
 * Can you help please.
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9652945)
 * Hey coachdavies,
    As I stated previously, this is legal syntax. You should to
   upgrade your site’s version of PHP to 7 or greater. (I believe this particular
   syntax only requires v5.5.) I provided a link to the WP requirements previously
   in this thread.
 * You can go to plugins in your dashboard, and search for “Display PHP Version”,
   and install the plugin. The PHP version you are running will the show on your
   dashboard.
 * If you are using a shared hosting site, you will have to contact your hosting
   provider and ask them to upgrade PHP.
 * Hope that helps.
    -Mark
 *  [coachdavies](https://wordpress.org/support/users/coachdavies/)
 * (@coachdavies)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9653060)
 * I can’t get on the dashboard that is the problem.
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9653246)
 * Okay, sorry. Go into your file system and delete the directory wp-content/plugins/
   team-rosters. Your admin will come back. Update PHP. Re-install the plugin. (
   The data will still be there.)
 * -Mark
 *  [coachdavies](https://wordpress.org/support/users/coachdavies/)
 * (@coachdavies)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9653427)
 * All sorted my host changed something.

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

The topic ‘Parse Error: Syntax Error, Unexpected ‘[‘’ is closed to new replies.

 * ![](https://ps.w.org/team-rosters/assets/icon-128x128.png?rev=1087838)
 * [Team Rosters](https://wordpress.org/plugins/team-rosters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/team-rosters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/team-rosters/)
 * [Active Topics](https://wordpress.org/support/plugin/team-rosters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/team-rosters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/team-rosters/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 7 replies
 * 3 participants
 * Last reply from: [coachdavies](https://wordpress.org/support/users/coachdavies/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-204/#post-9653427)
 * Status: resolved