WordPress.org

Ready to get started?Download WordPress

Forums

Diagnosis
Parse error upon updating to Diagnosis 2.1.1 (8 posts)

  1. Wes
    Member
    Posted 3 years ago #

    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! :)

  2. Gary Jones
    Member
    Plugin Author

    Posted 3 years ago #

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

  3. Wes
    Member
    Posted 3 years ago #

    PHP version is 5.2.17

  4. Gary Jones
    Member
    Plugin Author

    Posted 3 years ago #

    I've released v2.1.2 - does that also give an error for you?

  5. Wes
    Member
    Posted 3 years ago #

    Yep -- same error.

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

  6. Gary Jones
    Member
    Plugin Author

    Posted 3 years ago #

    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)

  7. Gary Jones
    Member
    Plugin Author

    Posted 3 years ago #

    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?

  8. Wes
    Member
    Posted 3 years ago #

    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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic