• Resolved RonaldS

    (@norus)


    Hi Guys, I get next fatal errors.
    How to solve these issues?

    [16-Feb-2018 19:46:50 UTC] PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php:49
    Stack trace:
    #0 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(49): DateTimeZone->__construct(”)
    #1 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(28): WPSEO_Sitemap_Timezone->get_datetime_with_timezone(‘2017-11-08 18:0…’)
    #2 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(215): WPSEO_Sitemap_Timezone->format_date(‘2017-11-08 18:0…’)
    #3 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(93): WPSEO_Sitemaps_Renderer->sitemap_url(Array)
    #4 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpres in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php on line 49
    [16-Feb-2018 20:21:31 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/agent-plugin/my_google_map.php on line 151
    [16-Feb-2018 21:46:22 UTC] PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php:49
    Stack trace:
    #0 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(49): DateTimeZone->__construct(”)
    #1 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(28): WPSEO_Sitemap_Timezone->get_datetime_with_timezone(‘2018-02-12 09:4…’)
    #2 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(215): WPSEO_Sitemap_Timezone->format_date(‘2018-02-12 09:4…’)
    #3 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(93): WPSEO_Sitemaps_Renderer->sitemap_url(Array)
    #4 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpres in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php on line 49
    [17-Feb-2018 05:07:06 UTC] PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php:49
    Stack trace:
    #0 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(49): DateTimeZone->__construct(”)
    #1 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(28): WPSEO_Sitemap_Timezone->get_datetime_with_timezone(‘2018-01-25 17:2…’)
    #2 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(215): WPSEO_Sitemap_Timezone->format_date(‘2018-01-25 17:2…’)
    #3 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(93): WPSEO_Sitemaps_Renderer->sitemap_url(Array)
    #4 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpres in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php on line 49

    • This topic was modified 6 years, 9 months ago by RonaldS.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rumejan Barbarona

    (@onlyincebu)

    What were you trying to do when you encountered this error? Also, please make sure you’re running the latest version of WordPress (4.9.4) and Yoast SEO(6.3).

    Thread Starter RonaldS

    (@norus)

    I am running all code with newest versions including WP + PHP v7.2.
    Still get this morning again this error:
    [19-Feb-2018 09:58:37 UTC] PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php:49
    Stack trace:
    #0 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(49): DateTimeZone->__construct(”)
    #1 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php(28): WPSEO_Sitemap_Timezone->get_datetime_with_timezone(‘2018-02-12 09:4…’)
    #2 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(186): WPSEO_Sitemap_Timezone->format_date(‘2018-02-12 09:4…’)
    #3 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(57): WPSEO_Sitemaps_Renderer->sitemap_index_url(Array)
    #4 /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wo in /home/deb96951n3/domains/webdomain.com/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-timezone.php on line 49

    • This reply was modified 6 years, 9 months ago by RonaldS.

    Hi, I have same issue on PHP 7.1 with newest seo yoast and WP

    Plugin Support devnihil

    (@devnihil)

    Based on the information you provided, we expect this to be a bug. We’re actively using the bug tracking on our GitHub repository so your best next step would be to create a new issue for our developers at https://github.com/Yoast/wordpress-seo/issues/new. You will need an account to create a new issue. If this is your first bug report, please check out: https://kb.yoast.com/kb/how-to-write-a-good-bug-report/.

    Don’t forget to include the URL to this conversation in your bug report.

    thank you

    Thread Starter RonaldS

    (@norus)

    Could you please let us know the following:
    What timezone is your site set on? Amsterdam + 1
    Did you also test this with a default theme such as Twenty Seventeen: No I use since 5 years Avada always with good results.

    Since 28-02 there are no more issues.

    I am a plugin dev by profession.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Fatal error: Uncaught Exception: DateTimeZone’ is closed to new replies.