• Resolved jimbo777

    (@jimbo777)


    PHP Version 7.4.3
    Timezone: UTC +1
    Date Format: 20/10/2020 d/m/Y

    My debug.log is filling up with 100s of lines:

    [20-Oct-2020 09:54:57 UTC] PHP Deprecated: WPSEO_Sitemap_Timezone::format_date ist seit Version WPSEO 12.8 veraltet! Benutze stattdessen Date_Helper::format.

    Anything I can do to prevent this?
    If this issue is not related to Yoast, please let me know.

    Thanks!

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

    (@maybellyne)

    Hello @jimbo777,

    Thanks for reaching out!

    Can you please confirm that you have updated your Yoast SEO from 12.8 to 15.1.1? Also are you running WordPress 5.5.1?

    Thread Starter jimbo777

    (@jimbo777)

    Just double checked… Wp 5.5.1 and Yoast 15.1.1 confirmed

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks @jimbo777.

    There is an issue with the time zones that is causing this. Kindly go to WordPress >
    Settings > General and change the time zone to a city near you or a different city; it should resolve the issue. If you still find such errors in the log after the change, do let us know and also share the URL of your site.

    Sa?a

    (@stodorovic)

    It’s most likely outdated PHP code (outside Yoast SEO plugin – it could be 3rd plugin or custom PHP code) which calls method format_date (from deprecated class WPSEO_Sitemap_Timezone).

    You should find source file and the easiest way is debug backtrace. You can use xdebug PHP extension, Query Monitor or custom PHP code to log/see full debug backtrace.

    More details:
    https://www.php.net/manual/en/function.debug-backtrace.php
    https://gist.github.com/jrfnl/5925642

    Thread Starter jimbo777

    (@jimbo777)

    great thanks! Changing the time zone to a city did not help but the backtrace code helped. I narrowed it down to a conflicting plugin. Removed plugin and issue seems gone now.

    Plugin Support devnihil

    (@devnihil)

    @jimbo777 Thanks for confirming that this has corrected it. We are going ahead and marking this issue as resolved but please let us know if you require any further assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Deprecated: WPSEO_Sitemap_Timezone::format_date ..wp-includes/functions.php’ is closed to new replies.