Unable to save when editing venues possible solution
-
When creating/editing venues outside of the event editor (i.e. from Events > Venues), I cannot save using the submitdiv metabox.
Instead, the submitdiv metabox titled “Publish” displays an error message:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'post_submit_meta_box' not found or invalid function name in C:\xampp-hraff\2016\wp-admin\includes\template.php on line 1037
I also see a broken “Featured Image” metabox with a similar error:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'post_thumbnail_meta_box' not found or invalid function name in C:\xampp-hraff\2016\wp-admin\includes\template.php on line 1037
It is my understanding that the “Featured Image” metabox should not be visible at all in the Venue editor page.
I have isolated the error to line 178 in event-organiser-venues.php:
do_action( 'add_meta_boxes', 'event_page_venues', $venue );
Commenting out this line appears to fix the issue, though I am not sure if it will affect other functionality in the plugin (it doesn’t appear to affect anything else).
Has anyone else experienced/reported a similar issue? Could this fix be implemented in a future update of the plugin?
- The topic ‘Unable to save when editing venues possible solution’ is closed to new replies.