WordPress.org

Forums

Keyring
[resolved] 'Fatal error' preventing installation (8 posts)

  1. consideredwords
    Member
    Posted 2 years ago #

    Hi, I cannot install Keyring as I get a 'Fatal error':

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_FUNCTION i

    I am on WordPress 3.8.1 and PHP 5.3.23

    Thanks

    https://wordpress.org/plugins/keyring/

  2. Beau Lebens
    Member
    Plugin Author

    Posted 2 years ago #

    Can you please check your server's error logs and see what the full error is? That appears to be cut off (should include a line number and full function name).

    Thanks

  3. consideredwords
    Member
    Posted 2 years ago #

    Thanks, it's:

    Parse error: syntax error, unexpected T_FUNCTION in /home/consider/public_html/wp-content/plugins/keyring/keyring.php on line 48

  4. Beau Lebens
    Member
    Plugin Author

    Posted 2 years ago #

    Interesting. That's the first line where a closure/anonymous function is used. PHP claims to support them in PHP 5.3.

    Does your web host have an option to run a more recent version of PHP? PHP 5.4+?

  5. consideredwords
    Member
    Posted 2 years ago #

    Thanks Beau, changing it to 5.4 fixed it, didn't realise I could upgrade manually.

  6. Beau Lebens
    Member
    Plugin Author

    Posted 2 years ago #

    Good to know, thanks for the update. Maybe I'll just bump up the minimum requirements to avoid confusion :)

  7. gdillonmurphy
    Member
    Posted 1 year ago #

    Hello,
    I got the same error but on line 50. Can you help?

  8. Beau Lebens
    Member
    Plugin Author

    Posted 1 year ago #

    @gdillonmuurphy: if you're getting that error, it's because you're using an outdated version of PHP. You'll need to upgrade the version of PHP you're using, which you can normally do through some sort of option/setting with your webhost (or by contacting them and asking them to do it for you).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Keyring
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic