• Resolved lernerconsulting

    (@lernerconsult)


    On WordPress 5.9.3
    Yoast version 18.9 gives error:
    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Yoast\WP\SEO\Actions\Configuration\Configuration_Workout_Action::__construct(), 1 passed in /wp-content/plugins/wordpress-seo/src/generated/container.php on line 893 and exactly 2 expected in /wp-content/plugins/wordpress-seo/src/actions/configuration/configuration-workout-action.php:47

    Solution:
    wp plugin update --format=summary --version=18.8 wordpress-seo

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

    (@maybellyne)

    Hello Lernerconsult,

    We are sorry about the error you encountered while using WordPress 5.9.3 and Yoast SEO 18.9. Do you mean that you have resolved the issue by downgrading to Yoast SEO v18.8? If yes, we do not recommend downgrading to older versions of our plugin.

    We’ve seen similar issues that were fixed by installing the plugin manually via FTP. Can you please delete your current installation of Yoast SEO and install it again? All your settings are saved in the database so even if you remove the plugin and install it again, your settings are safe.

    Do let us know how it goes.

    Thread Starter lernerconsulting

    (@lernerconsult)

    Yes, the “fatal error” went away when I installed the prior version. It brought the entire site down, so getting it running again was important.

    I was mistaken when I said that installing prior version fixed the problem; I forgot to activate the plugin. So, what worked was deleting the plugin. [see update below.]

    There is a stack trace in server logs:

    Stack trace:
    
    #0 /home/FOLDER/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(893): Yoast\WP\SEO\Actions\Configuration\Configuration_Workout_Action->__construct(Object(Yoast\WP\SEO\Helpers\Options_Helper))
    
    #1 /home/FOLDER/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(4276): Yoast\WP\SEO\Generated\Cached_Container->getConfigurationWorkoutActionService()
    
    #2 /home/FOLDER/public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(271): Yoast\W in /home/FOLDER/public_html/wp-content/plugins/wordpress-seo/src/actions/configuration/configuration-workout-action.php on line 47
    

    Update: Clearing Lightspeed cache for the site, the site works with wordpress-seo 18.9 So, now the problem is gone.

    I’d still suggest trapping that error, so it doesn’t produce a PHP Fatal Error bringing down the site.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @lernerconsult

    Could you update to the latest version of Yoast SEO 19.0 and see if the issue still occurs? We do know that there were some bug fixes regarding the configuration workout as per the changelog.

    I marked this thread as resolved due to a lack of activity by the original poster. The original poster is always welcome to re-open this topic.

    If you are not the original poster but have a similar issue, please read this post before opening a new request.

    Thread Starter lernerconsulting

    (@lernerconsult)

    The same site that had errors, updated to Yoast version 19.0, is working normally.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error in version 18.9’ is closed to new replies.