Support » Plugin: Diagnosis » Parse error upon updating to Diagnosis 2.1.1

  • Wes

    (@wes)


    Upon updating to the new version of Diagnosis, I get this error:

    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in [WP directory]/wp-content/plugins/diagnosis/diagnosis.php on line 60

    Any help would be appreciated! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gary Jones

    (@garyj)

    What version of PHP are you running? V2.1+ requires PHP 5.

    Wes

    (@wes)

    PHP version is 5.2.17

    Plugin Author Gary Jones

    (@garyj)

    I’ve released v2.1.2 – does that also give an error for you?

    Wes

    (@wes)

    Yep — same error.

    (I appreciate your looking into this issue, by the way! :))

    Plugin Author Gary Jones

    (@garyj)

    Can you try disabling all other plugins temporarily?

    There’s really no reason that PHP 5.2.17 should cause an issue with the static keyword.
    (At a minimum, you could delete lines 60 and 69 to get rid of the error)

    Plugin Author Gary Jones

    (@garyj)

    Also, how are you determining the version of PHP (there’s some irony here that I know Diagnosis would tell you it just fine!)? cPanel has been known to be wrong sometimes.

    Can you create a .php file in your site, with the contents just as:

    <?php phpinfo(); ?>

    and see what version that says you’re using?

    Wes

    (@wes)

    Disabled all of the plugins — it doesn’t work even when it’s the only thing activated. Really weird.

    And the PHP info came from a plugin — WP-Memory-Usage. It displays the PHP version on the WP dashboard. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Parse error upon updating to Diagnosis 2.1.1’ is closed to new replies.