Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggered a fatal error. #25

Closed
sulavMalla opened this issue Jan 14, 2019 · 3 comments
Closed

Triggered a fatal error. #25

sulavMalla opened this issue Jan 14, 2019 · 3 comments
Labels

Comments

@sulavMalla
Copy link

After installing, I get the following error while trying to activate it.

Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected '[' in /var/www/html/blog/wp-content/plugins/code-prettify/code-prettify.php on line 28

@kasparsd
Copy link
Owner

Thanks for reporting the issue @sulavMalla!

This appears to be a problem with an older version of PHP which doesn't support the shorthand syntax [] for arrays. This is a feature introduced in PHP 5.4 six years ago.

If possible, I would strongly recommend to upgrade your host to a newer version of PHP. This is usually possible in the admin panel of your hosting provider.

@kasparsd
Copy link
Owner

This has been fixed in version 1.4.2. Thanks again @sulavMalla!

@sulavMalla
Copy link
Author

Wow! Thank you for the quick fix @kasparsd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants