• Resolved alecag

    (@alecag)


    We have a site that uses Yoast SEO (21.0) and TranslatePress (2.6.0) for multiple languages. After updating to PHP 8, two of our foreign language pages are returning 500 errors from the Yoast plugin. Below is the error from the logs:

    PHP Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /nas/content/live/[oursite]/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option-titles.php:257

    When we disable Yoast, everything works fine. Of, if we revert back to PHP 7.4, then we can re-enable Yoast.

    Appreciate any guidance you can offer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @alecag

    I’m sorry to learn about the 500 error. In trying to replicate this, can you let me know if you get the error on a translated post or page? It would be helpful if you can provide more information that could help in reproducing the error.

    Thread Starter alecag

    (@alecag)

    Hi @maybellyne – thanks for replying. We get the error on pages – every page that is prefixed for /fr (french) or /de (german). What is strange is that all our other foreign languages work just fine, eg. /it, /pt, /es, etc.

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for the information, @alecag. I was unable to replicate the 500 error on my test site. Translated pages load properly without an error. You mentioned that when you disable Yoast SEO, everything works fine.

    Can you please perform a proper conflict check? Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Yoast PHP 8+ issues with language pages’ is closed to new replies.