Activation Error
-
Hi, when trying to activate the plugin I got the following error:
Parse error: syntax error, unexpected ‘[‘ in [my-domain]/wp-content/plugins/jwt-authentication-for-wp-rest-api/public/class-jwt-auth-public.php on line 75I found out that the problem is that you are using array shorthand syntax, which is only supported in versions of PHP >= 5.4.0, yet the docs of the plugin say “Minimum PHP version: 5.3.0”.
I have PHP 5.3.29 on my server, so I had to change the way the array is created on line 75 to be able to activate the plugin: array() instead of []
You might want to change that in tour code or update the docs to say “Minimum PHP version: 5.4.0”.
Cheers,
Marcos
- The topic ‘Activation Error’ is closed to new replies.