Yoast SEO is (kind of) incompatible with PHP8

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?

Leave a Comment