Hello @sarankumar,
Can you please provide more details about the issue?
Parse error: syntax error, unexpected ‘)’ in /Applications/MAMP/htdocs/livo-wp/wp-content/plugins/simple-jwt-login/routes/api.php on line 158
I’ve checked on my side, and I am unable to replicate the issue. I’ve tested on PHP 7.4.
This error it seems that it is triggered on the line when we call the simple_jwt_login_before_endpoint hook.
Do You have a custom implementation for this hook?
Also, to make sure that it is an issue with the latest plugin version, can you please download version 3.4.8 from :https://downloads.wordpress.org/plugin/simple-jwt-login.3.4.8.zip ?
The critical error comes with current version 3.4.9, because you have a wrong comma within /wp-content/plugins/simple-jwt-login/routes/api.php on line 157:
$wordPressData->triggerAction(
\SimpleJWTLogin\Modules\SimpleJWTLoginHooks::HOOK_BEFORE_ENDPOINT,
$route['method'],
$route['name'],
$request,
);
(after $request).
Thanks for the headsup @1benk1.
I was testing on PHP 7.4.32 and there was working ok.
I’ve released a new version for the plugin 3.4.10. Can you please test it and let me know if all is ok?
Thanks.
With 3.4.10 everthings works fine.
Thank you for checking @1benk1 !!!
The bug was on version 3.4.9 with PHP < version 7.4
Latest version 3.4.10 working fine.
Hello,
I have good news. In order to prevent such errors, the plugin has now some pipelines that checks the compatibility with: PHP 5.5, PHP 5.6, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, PHP 8.1 and PHP 8.2.
The new plugin release will happen by the end of this week.
Thank you all for your help.
Best regards,
Nicu.