Suhaib Siddiqi
June 15, 2014 at 8:37 am
https://eventespresso.com/topic/front-end-is-not-saving-events/page/2/
Is there any solution? Can it be fixed?????????????????????????????????????????//
Sidney Harrell
June 16, 2014 at 2:28 pm
Add New Note to this Reply
As a temporary fix, you can change line 234 of plugins/event-espresso/includes/event-management/add_new_event.php from:
<input type="text" name="event" size="30" tabindex="1" value="<?php echo isset($event_name) ? $event_name : ''; ?>" id="title" autocomplete="off" />
to:
<input type="text" name="event_name" size="30" tabindex="1" value="<?php echo isset($event_name) ? $event_name : ''; ?>" id="title" autocomplete="off" />
then in includes/event-management/insert_event.php change line 82 from:
$event_name = !empty($_REQUEST['event']) ? sanitize_text_field($_REQUEST['event']) : $event_code;
to:
$event_name = !empty($_REQUEST['event_name']) ? sanitize_text_field($_REQUEST['event_name']) : $event_code;
Finally, in plugins/espresso-event-manager/templates/fem_form_output.php change line 22 from:
<input class="required" name="event" tabindex="1" value="" id="event_title_field" type="text">
to:
<input class="required" name="event_name" tabindex="1" value="" id="event_title_field" type="text">
Suhaib Siddiqi
June 16, 2014 at 5:25 pm
Add New Note to this Reply
Thanks Sidney, This took care of the problem.