Support » Plugin: Event Organiser » Fatal errors after import

  • To test, I created just two events and exported them using Tools > Export. I deleted the events and imported using Tools > Import.

    1. Only one event is shown under All Events on the back end. No error is logged.

    2. On the front end, this error is generated:

    [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
    Stack trace:
    #0 /Users/greg/Sites/RHM/ISSM/wordpress/wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php(164): eo_format_datetime(false, ‘j F, Y’)
    #1 /Users/greg/Sites/RHM/ISSM/wordpress/wp-content/themes/issm/functions.php(445): eo_format_event_occurrence()
    #2 /Users/greg/Sites/RHM/ISSM/wordpress/wp-includes/class-wp-hook.php(286): issm_event_meta(‘[post_date] by …’)
    #3 /Users/greg/Sites/RHM/ISSM/wordpress/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘[post_date] by …’, Array)
    #4 /Users/greg/Sites/RHM/ISSM/wordpress/wp-content/themes/genesis/lib/structure/post.php(291): apply_filters(‘genesis_post_in…’, ‘[post_date] by …’)
    #5 /Users/greg/Sites/RHM/ISSM/wordpress/wp-includes/class-wp-hook.php(286): genesis_post_info(”)
    #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

    If I re-save each event without making any changes, the errors goes away.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m getting the same errors after updating my WordPress version and updating the plugin. I have 224 events already entered into my system. Do I need to open and save each of the 224 entries to make the errors go away?

    If you open and save one of them, does the error go away for that event?

    Go to Organiser Plugin > Settings > General > Maps > Map provider: select from DropDown “OpenStreetMap”. Save. It should all be good now.

    Plugin Author Stephen Harris

    (@stephenharris)

    @swinggraphics – what are you using to export/import the events? Is the “WordPress Importer”? If so, then unfortunately events cannot be imported in this manner, as the event dates are not created.

    Updating the events after importing, either manually or by running a script will resolve the issue.

    Unfortunately the issue is not fixable until the WordPress Importer gets an update, as there are insufficient hooks to know when an event is imported so as to generate the event’s dates and store them in the database.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal errors after import’ is closed to new replies.