• Resolved justo8484

    (@justo8484)


    When trying to install SinglePlatform running WP 4.6.1 and the TwentyFifteen default theme, I’m presented with the error:

    Parse error: syntax error, unexpected T_FUNCTION in /home/SITE_NAME/public_html/beta/wp-content/plugins/singleplatform/singleplatform.php on line 107

    The remote server is running php 5.2. I’ve tested this locally with MAMP running php 5.5 and have had no issues installing the plugin. Maybe answering my own question here, but is it a fair assumption that this is just an issue with php versions, as I’ve seen discussed elsewhere regarding other plugins encountering the same or similar errors? My host has php 5.4 available to me, but I’d like to verify that that will in fact fix my issue before just flipping the switch. They also have 5.6 beta, but I’m a bit hesitant to run a beta version in production. Any help or suggestions are much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • My best guess is that you are correct in your assumption about the PHP version issue.

    FWIW you should really upgrade to 5.6 or later, as that is what WP recommends: WordPress requirements

    Plugin Contributor crussellwalker

    (@crussellwalker)

    Hi @justo8484 – did you get the information you needed?
    Has an upgrade solved your issue?

    Thanks in advance for your reply.
    -Chris

    Thread Starter justo8484

    (@justo8484)

    @crussellwalker I actually ended up just embedding the SinglePlatform page directly into the site. It’s an overhaul of an existing site, so I’m hesitant to bump the version of php on the webserver for a site that’s currently in production. I’ll give it a shot once I launch the new version, when I can be sure I won’t have issues with the theme/WP version running a different version of php.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected T_FUNCTION’ is closed to new replies.