- This topic has 7 replies, 4 voices, and was last updated 9 years ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Parse error: syntax error, unexpected T_STRING
Tagged: stripe subscription
Help!
Parse error: syntax error, unexpected T_STRING in /public_html/***/wp-content/plugins/simple-membership/classes/class.swpm-utils-misc.php on line 344
Here is line 344
\Stripe\Stripe::setApiKey($api_key);
Thank you for reporting this. The plugin developers will investigate further your issue.
Kind regards
Your server is using a very old version of PHP so you are seeing that error.
In our recent release we added Stripe subscription which requires a more recent PHP version to be used on your site. You should ask your hosting provider to upgrade your PHP to a more recent version then you won’t see the issue.
I have added a check in the new version of the plugin so it shows an warning message instead of the error.
I’m getting the warning message ‘The Stripe subscription gateway library requires at least PHP 5.4.0. Your server is using a very old version of PHP.’
However, my server version is now PHP 7.0
Is there a way to update the plugin so it can tell that my PHP version is not outdated?
@eoadams8, what kind of update are you requesting? Can you give an example?
Thank you
I think the plugin just needed to be refreshed because I changed hosts and the PHP version was updated as well. It is now working. Thanks
Hi, I am glad to hear your issue is resolved.
Enjoy the plugin 🙂