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! :)
Gary Jones
Member
Posted 11 months ago #
What version of PHP are you running? V2.1+ requires PHP 5.
Gary Jones
Member
Posted 11 months ago #
I've released v2.1.2 - does that also give an error for you?
Yep -- same error.
(I appreciate your looking into this issue, by the way! :))
Gary Jones
Member
Posted 11 months 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)
Gary Jones
Member
Posted 11 months 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?
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. :)