Closed joho1968 closed 2 years ago
"Manually" selecting 2.10.0 works.
The latest version requires Statamic 3.3 which only supports PHP 8
The latest version requires Statamic 3.3 which only supports PHP 8
Unless I'm mistaken, it looks like the minimum PHP version for Statamic 3.3 is PHP 7.4 not PHP 8. (I know they recommend at least 8.1 with 3.3 - so I'll likely upgrade my PHP and avoid such an issue).
Docs Link: https://statamic.dev/upgrade-guide/3-2-to-3-3#php-version
Is anyone else experiencing the same error as pointed out in the first comment?
I'm running Statamic on the latest version (3.3.54), and PHP 8.0.
PHP 8.0 should be fine. Make sure your CLI and your web server are running 8.0.
Confirmed PHP version issue.
In case it's useful to anyone else, I was using MampPro with the host I setup for the site on PHP 8.0, but I kept getting weird issues.
I ended up using php please support:details
which confirmed that the site was not using Mamp, and was using the default OSX php version. (7.something).
I ended up using brew to install PHP 8.0, and then switched the version. Following this article: https://wpbeaches.com/updating-to-php-versions-7-4-and-8-on-macos-11-big-sur-and-catalina/
All down to my misunderstanding about Mamp and Laravel I think, but got there in the end.
Maybe it's just me, but this is what I get on an Ubuntu 20.04 (PHP 7.4.3):
(CLI command was "composer require spatie/statamic-responsive-images")