• Resolved W0olnut

    (@w0olnut)


    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.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter W0olnut

    (@w0olnut)

    If you need anymore information please let me know!

    Plugin Author Mark O’Donnell

    (@markodonnell)

    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/

    -Mark

    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

    (@markodonnell)

    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

    I can’t get on the dashboard that is the problem.

    Plugin Author Mark O’Donnell

    (@markodonnell)

    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

    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.