{"id":1410709,"date":"2017-12-21T04:50:53","date_gmt":"2017-12-21T12:50:53","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/"},"modified":"2017-12-21T04:50:53","modified_gmt":"2017-12-21T12:50:53","slug":"the-timezone-could-not-be-found-in-the-database","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/","title":{"rendered":"The timezone could not be found in the database"},"content":{"rendered":"<p>I receive the following errors if I enable The Events Calendar Pro:<\/p>\n<p><code>[21-Dec-2017 12:41:47 UTC] PHP Fatal error:  Uncaught Exception: DateTime::__construct(): Failed to parse time string (NULL) at position 0 (N): The timezone could not be found in the database in \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php:31<br \/>\nStack trace:<br \/>\n#0 \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php(31): DateTime-&amp;gt;__construct('NULL')<br \/>\n#1 \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/Tribe\/Countdown_Widget.php(93): include('\/var\/www\/html\/a...')<br \/>\n#2 \/var\/www\/html\/wp-includes\/class-wp-widget.php(507): Tribe__Events__Pro__Countdown_Widget-&amp;gt;form(Array)<br \/>\n#3 \/var\/www\/html\/wp-admin\/includes\/widgets.php(243): WP_Widget-&amp;gt;form_callback(Array)<br \/>\n#4 \/var\/www\/html\/wp-admin\/includes\/widgets.php(48): wp_widget_control(Array, Array)<br \/>\n#5 \/var\/www\/html\/wp-admin\/widgets.php(401): wp_list_widgets()<br \/>\n#6 {main}<br \/>\n  thrown in \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php on line 31<\/code><\/p>\n<p>This fails silently, so no indication on the admin, but \/wp-admin\/widgets.php is broken and no way to edit the already added widgets.<\/p>\n<p>The error appears only if &#8216;Use the local timezones for each event&#8217; is set on page \/wp-admin\/edit.php?post_type=tribe_events&amp;page=tribe-common&amp;tab=general If it is set to &#8216;Use the sitewide timezone everywhere&#8217; then no errors raised.<\/p>\n<p>Plugin version is the latest (4.4.20.1).<\/p>\n","protected":false},"template":"","class_list":["post-1410709","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The timezone could not be found in the database -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The timezone could not be found in the database -\" \/>\n<meta property=\"og:description\" content=\"I receive the following errors if I enable The Events Calendar Pro: [21-Dec-2017 12:41:47 UTC] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (NULL) at position 0 (N): The timezone could not be found in the database in \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php:31 Stack trace: #0 \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php(31): DateTime-&amp;gt;__construct(&#039;NULL&#039;) #1 \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/Tribe\/Countdown_Widget.php(93): include(&#039;\/var\/www\/html\/a...&#039;) #2 \/var\/www\/html\/wp-includes\/class-wp-widget.php(507): Tribe__Events__Pro__Countdown_Widget-&amp;gt;form(Array) #3 \/var\/www\/html\/wp-admin\/includes\/widgets.php(243): [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/\",\"name\":\"The timezone could not be found in the database -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-12-21T12:50:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"The timezone could not be found in the database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The timezone could not be found in the database -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/","og_locale":"en_US","og_type":"article","og_title":"The timezone could not be found in the database -","og_description":"I receive the following errors if I enable The Events Calendar Pro: [21-Dec-2017 12:41:47 UTC] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (NULL) at position 0 (N): The timezone could not be found in the database in \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php:31 Stack trace: #0 \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/admin-views\/widget-admin-countdown.php(31): DateTime-&amp;gt;__construct('NULL') #1 \/var\/www\/html\/assets\/plugins\/events-calendar-pro\/src\/Tribe\/Countdown_Widget.php(93): include('\/var\/www\/html\/a...') #2 \/var\/www\/html\/wp-includes\/class-wp-widget.php(507): Tribe__Events__Pro__Countdown_Widget-&amp;gt;form(Array) #3 \/var\/www\/html\/wp-admin\/includes\/widgets.php(243): [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/","name":"The timezone could not be found in the database -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-12-21T12:50:53+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-timezone-could-not-be-found-in-the-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"The timezone could not be found in the database"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1410709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1410709\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1410709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}