{"id":10374266,"date":"2018-06-07T11:58:34","date_gmt":"2018-06-07T11:58:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fatal-errors-after-import\/"},"modified":"2018-06-07T11:58:34","modified_gmt":"2018-06-07T11:58:34","slug":"fatal-errors-after-import","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fatal-errors-after-import\/","title":{"rendered":"Fatal errors after import"},"content":{"rendered":"<p>To test, I created just two events and exported them using Tools &gt; Export. I deleted the events and imported using Tools &gt; Import.<\/p>\n<p>1. Only one event is shown under All Events on the back end. No error is logged.<\/p>\n<p>2. On the front end, this error is generated:<\/p>\n<blockquote><p>[07-Jun-2018 11:38:50 UTC] PHP Fatal error:  Uncaught Exception: Error in formating DateTime object. Expected DateTime, but instead given boolean in \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-content\/plugins\/event-organiser\/includes\/event-organiser-utility-functions.php:31<br \/>\nStack trace:<br \/>\n#0 \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-content\/plugins\/event-organiser\/includes\/event-organiser-utility-functions.php(164): eo_format_datetime(false, &#8216;j F, Y&#8217;)<br \/>\n#1 \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-content\/themes\/issm\/functions.php(445): eo_format_event_occurrence()<br \/>\n#2 \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-includes\/class-wp-hook.php(286): issm_event_meta(&#8216;[post_date] by &#8230;&#8217;)<br \/>\n#3 \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-includes\/plugin.php(203): WP_Hook-&gt;apply_filters(&#8216;[post_date] by &#8230;&#8217;, Array)<br \/>\n#4 \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-content\/themes\/genesis\/lib\/structure\/post.php(291): apply_filters(&#8216;genesis_post_in&#8230;&#8217;, &#8216;[post_date] by &#8230;&#8217;)<br \/>\n#5 \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-includes\/class-wp-hook.php(286): genesis_post_info(&#8221;)<br \/>\n#6 \/Users\/greg\/Sites\/RH in \/Users\/greg\/Sites\/RHM\/ISSM\/wordpress\/wp-content\/plugins\/event-organiser\/includes\/event-organiser-utility-functions.php on line 31<\/p><\/blockquote>\n<p>If I re-save each event without making any changes, the errors goes away.<\/p>\n","protected":false},"template":"","class_list":["post-10374266","topic","type-topic","status-publish","hentry","topic-tag-event-organizer","topic-tag-stack-trace"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10374266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10374266\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10374266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}