PHP version does not meet requirements error

Started by zazen, April 25, 2024, 03:15:18 PM

Previous topic - Next topic

zazen

I'm trying to install SMF on a site hosted by ecowebhosting.co.uk [nofollow], using their one-click installer. The installer fails with an error message:

https://3dcontentmanagers.com/forum/install.php [nofollow]

I've tried several versions of PHP from 7 to 8.x, same issue with them all.

Their support responds with the following:

"I believe the issue here is that the way the installer is configured, its not able to detect the correct PHP version on our shared platform. Would you be able to contact the support for this service for any ways to bypass the error message ? Our platform is meeting the requirements, its just whatever way they're retrieving the PHP version isn't working."

Link to php.info [nofollow]: https://3dcontentmanagers.com/info.php [nofollow]

Any idea how to fix this?

Thanks!
Richard


shawnb61

SMF uses the php function version_compare(), and the php constant PHP_VERSION:
https://github.com/SimpleMachines/SMF/blob/5da827a6dc2e96a2e3f2221779f351541aba3c20/other/install.php#L506
https://www.php.net/manual/en/function.version-compare.php

I would confirm the host supports both.

Note that there are some challenges with php 8.3 - I wouldn't use that yet for 2.1. 
https://github.com/SimpleMachines/SMF/issues/7793
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Doug Heffernan

Quote from: zazen on April 25, 2024, 03:15:18 PMusing their one-click installer.

For future reference, it is best imo to avoid the one-click installer and do the installs and/or upgrades manually.


zazen

Quote from: shawnb61 on April 25, 2024, 03:40:53 PMSMF uses the php function version_compare(), and the php constant PHP_VERSION:
https://github.com/SimpleMachines/SMF/blob/5da827a6dc2e96a2e3f2221779f351541aba3c20/other/install.php#L506 [nofollow]
https://www.php.net/manual/en/function.version-compare.php [nofollow]

I would confirm the host supports both.

Note that there are some challenges with php 8.3 - I wouldn't use that yet for 2.1. 
https://github.com/SimpleMachines/SMF/issues/7793 [nofollow]

Excellent, got it working now (with PHP 8.0, just in case). Thanks!
Richard

zazen

Quote from: Doug Heffernan on April 25, 2024, 04:48:18 PM
Quote from: zazen on April 25, 2024, 03:15:18 PMusing their one-click installer.

For future reference, it is best imo to avoid the one-click installer and do the installs and/or upgrades manually.



OK, will remember that. Thanks!
Richard

Advertisement: