Page 1 of 1

PHP 5.2 error

PostPosted: June 16th, 2010, 8:46 pm
by Oakie
I've installed the plugin, but get the error "You need PHP version 5.2 or higher to use the s2Member plugin." I'm using hostmonster, and inside the cpanel it claims to be using PHP 5.2.13.

Any ideas why I'm getting this error? I did not find this question elsewhere on here, but if it's here please let me know.

Re: PHP 5.2 error

PostPosted: June 19th, 2010, 1:44 pm
by Jason Caldwell
I can think of two possibilities.

1. Your host provides both PHP 4, and PHP 5 on your server. The site you installed s2Member on is using PHP 4 instead of PHP 5. In this case, you should ask your hosting provider to enable PHP 5 for your domain.

2. Your hosting provider is using a beta, or development version of PHP, in which case; s2Member "could" be incorrect in its assumption ( not likely though ). In other words, the version_compare() function is reporting incorrectly on your installation.

Please report back if you find a solution to this problem.

Re: PHP 5.2 error

PostPosted: September 6th, 2010, 5:28 pm
by Guest
Hi,

I just wanted to say I was also getting this error, and figured out how to fix it.

For me, Jason was right-on with his 1st response! Thanks Jason.

For anybody wondering: my host (MediaTemple) enables both PHP 4 & PHP 5 on a per domain basis. To switch it to PHP 5, on MediaTemple at least, you can just log-in, check the options on the main domain & navigate to PHP Settings. Then, make sure the domain in question is switched to PHP 5 (PHP 4 is default on (mt)) and you will be ready for action!

Thanks again Jason, you are really supporting this plug-in well!!!

Re: PHP 5.2 error

PostPosted: September 7th, 2010, 11:31 pm
by Jason Caldwell
Awesome. Thank you VERY much for reporting that solution.
~ Much appreciated, and thanks for the kudos too!