WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. consideredwords
    Member
    Posted 6 months 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 6 months 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 6 months 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 6 months 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 6 months ago #

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

  6. Beau Lebens
    Member
    Plugin Author

    Posted 6 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic