When I try to save an event in the dashboard I get an fatal error.
The error log says:
PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, bool given in /www/htdocs/w019fd52/mannaz/wp-content/plugins/event-organiser-pro/admin/edit.php:285
Stack trace:
#0 /www/htdocs/w019fd52/mannaz/wp-content/plugins/event-organiser-pro/admin/edit.php(285): array_map('eo_format_datet...', false)
#1 /www/htdocs/w019fd52/mannaz/wp-includes/class-wp-hook.php(310): eventorganiser_pro_save_event(5465)
#2 /www/htdocs/w019fd52/mannaz/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#3 /www/htdocs/w019fd52/mannaz/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /www/htdocs/w019fd52/mannaz/wp-content/plugins/event-organiser/event-organiser-edit.php(418): do_action('eventorganiser_...', 5465)
#5 /www/htdocs/w019fd52/mannaz/wp-includes/class-wp-hook.php(312): eventorganiser_details_save(5465)
#6 /www/htdocs/w019fd52/mannaz/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(5465, Array)
#7 /www/htdocs/w019fd52/mannaz/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /www/htdocs/w019fd52/mannaz/wp-includes/post.php(4751): do_action('save_post', 5465, Object(WP_Post), true)
#9 /www/htdocs/w019fd52/mannaz/wp-includes/post.php(4853): wp_insert_post(Array, false, true)
#10 /www/htdocs/w019fd52/mannaz/wp-admin/includes/post.php(445): wp_update_post(Array)
#11 /www/htdocs/w019fd52/mannaz/wp-admin/post.php(227): edit_post()
#12 {main}
thrown in /www/htdocs/w019fd52/mannaz/wp-content/plugins/event-organiser-pro/admin/edit.php on line 285
What can I do?
Sven Albrecht
Hi Sven,
This will only happen if the event doesn’t have any dates. I can’t see how that would happen. I can ‘fix’ the symptom, but there appears to be some conflict with either WordPress or another plug-in, that is causing the events not to save.
What version of WordPress are you using? Do you perform any updates / install any new plugins or theme prior to this occurring?
Stephen Harris