• Resolved John


    Upgraded a WordPress 5.3 site to Yoast 12.6 and am now getting a fatal error on Buddypress user pages on the site.

    The error does not occur if Yoast is disabled. The issue is not present in Yoast 12.5.1 and the site loads fine when downgraded to this.

    [26-Nov-2019 11:35:11 UTC] PHP Fatal error:  Uncaught Error: Call to a member function format() on boolean in /public_html/wp-content/plugins/wordpress-seo/inc/date-helper.php:26
    Stack trace:
    #0 /public_html/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-webpage.php(79): Date_Helper->format(0)
    #1 /public_html/wp-content/plugins/wordpress-seo/frontend/schema/class-schema.php(96): WPSEO_Schema_WebPage->generate()
    #2 /public_html/wp-includes/class-wp-hook.php(288): WPSEO_Schema->generate('')
    #3 /public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #4 /public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /public_html/wp-content/plugins/wordpress-seo/frontend/schema/class-schema.php(64): do_action('wpseo_json_ld')
    #6 /public_html/wp-includes/class-wp-hook.php(288): WPSEO_Schema->json_ld('')
    #7 /public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(Object(WPS in /public_html/wp-content/plugins/wordpress-seo/inc/date-helper.php on line 26
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi there @jhob,

    I’m sorry that this happened to you. Thanks for letting us know about this. It might be an unsuccessful upgrade or an issue for which we’re scheduled to release version 12.6.1 of the plugin.

    Version 12.6.1 should hit WordPress.org soon, so please keep an eye out for that and see if installing that version solves your issue.

    Thread Starter John


    @benvaassen Thanks, will look out for 12.6.1.

    I did replicate the issue after upgrading on two separate sites so unlikely to be an unsuccessful upgrade.

    Same with me. After disabling Yoast SEO it’s working again.

    • This reply was modified 4 years, 8 months ago by Mauro Mello.

    Yes, same with me. Disable Yoast and all good. But does that mean I just leave Yoast off?

    • This reply was modified 4 years, 8 months ago by Lenny1975.
    Thread Starter John


    @lenny1975 or downgrade to 12.5.1 will also work

    Thanks John. Is there an easy way to downgrade please? This is just such a pain!

    Thread Starter John


    @lenny1975 You’ll need to do it manually, so via your FTP client delete the /wp-content/plugins/wordpress-seo/ directory.

    Download 12.5.1 then in WordPress Admin go to Plugins > Add New > Upload and upload the 12.5.1 zip file you downloaded. The plugin will then be installed so just activate it and you should be good to go again.

    Thanks John, very helpful. I went to do this but noticed there was a new version from yoast which I updated and activated. It’s all working fine now (fingers crossed).

    Thanks again

    @lenny1975 That’s awesome to hear!

    @jhob and @mauromello We’ve released Yoast SEO 12.6.1 now, can you try it and let us know if that fixes the issue for you?

    fixed on my wordpress too
    Thanks for this quick fix !

    (I don’t understand why my previous replies have desapeared :-/)

    Thanks!! Working fine now! 🙂

    Plugin Support devnihil


    Thanks for confirming that the update fixed the issue. We are going ahead and marking this issue as resolved, but if you require any further assistance please create a new issue.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fatal Error on BuddyPress user page after upgrade’ is closed to new replies.