Yoast SEO is compatible with PHP 8 and PHP 8.1 but the Composer that YoastSEO is using doesn’t yes support PHP 8.0 so you might experience problems when editing posts&pages in WordPress.
According to this comment there are still 19 other PHP version incompatibilities remaining to be fixed. 😲
So turns out that YoastSEO is built on PHP 7.x and for use on PHP 8.0 ? 🤔
The workaround: Use an older PHP version such as 7.4 or do a platform overwrite in composer:
"config": {
"platform": {
"php": "7.4"
}
}
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂
ARe you saying there is a little code I could apply to yoast script and it will work fine with PHP 8.1?
I’m also having problems upgrading to php 8.1. especially the yoast plugin