Support » Plugin: WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce » Event Banner Upload Does not work after WP update 5.5.

  • Resolved paulbuijs

    (@paulbuijs)


    After updating WordPress to 5.5 today, the event banner upload field and button do not work for me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Priya Goenka

    (@priyagoenka)

    Hi @paulbuijs

    Yes with the update of WordPress 5.5, The users are facing the Event banner upload issue.
    This will be corrected in the updated version, which is set to release soon.

    For now, You can replace the existing file wp-event-manager/assets/js/admin.min with the following code.

    var Admin=(Admin=function(){var t,a,n;return{init:function(){var e;jQuery(".tips, .help_tip").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),0<jQuery(".event-manager-select-chosen").length&&jQuery(".event-manager-select-chosen").chosen(),jQuery("input[name=_event_time_format]").on("change",Admin.actions.showSelectedTimeFormat),e=wp_event_manager_admin_js.show_past_date?"":0,0<jQuery('input[data-picker="datepicker"]#_event_start_date').length&&jQuery('input[data-picker="datepicker"]#_event_start_date').datepicker({minDate:e,dateFormat:wp_event_manager_admin_js.i18n_datepicker_format}),0<jQuery('input[data-picker="datepicker"]#_event_end_date').length&&jQuery('input[data-picker="datepicker"]#_event_end_date').datepicker({dateFormat:wp_event_manager_admin_js.i18n_datepicker_format,beforeShow:function(e,t){var a=jQuery('input[data-picker="datepicker"]#_event_start_date').datepicker("getDate");jQuery(this).datepicker("option","minDate",a)}}),0<jQuery("#_event_start_time").length&&jQuery("#_event_start_time").timepicker({timeFormat:wp_event_manager_admin_js.i18n_timepicker_format,step:wp_event_manager_admin_js.i18n_timepicker_step}),0<jQuery("#_event_end_time").length&&jQuery("#_event_end_time").timepicker({timeFormat:wp_event_manager_admin_js.i18n_timepicker_format,step:wp_event_manager_admin_js.i18n_timepicker_step}),0<jQuery("#_event_timezone").length&&jQuery("#_event_timezone").chosen({search_contains:!0}),0<jQuery('input[data-picker="datepicker"]#_event_registration_deadline').length&&jQuery('input[data-picker="datepicker"]#_event_registration_deadline').datepicker({minDate:e,dateFormat:wp_event_manager_admin_js.i18n_datepicker_format}),0<jQuery('input[data-picker="datepicker"]#_event_expiry_date').length&&jQuery("input#_event_expiry_date").datepicker({minDate:e,dateFormat:wp_event_manager_admin_js.i18n_datepicker_format,beforeShow:function(e,t){var a=jQuery('input[data-picker="datepicker"]#_event_end_date').datepicker("getDate");jQuery(this).datepicker("option","minDate",a)}}),0<jQuery('input[data-picker="datepicker"]').length&&jQuery('input[data-picker="datepicker"]').datepicker({minDate:0,dateFormat:wp_event_manager_admin_js.i18n_datepicker_format}),jQuery("p.form-field-author").on("click",Admin.author.changeAuthor),jQuery("#setting-event_manager_submission_expire_options").on("change",Admin.settings.selectEventExpiryOption),jQuery(".wp_event_manager_upload_file_button").on("click",Admin.fileUpload.addFile),jQuery(".wp_event_manager_add_another_file_button").on("click",Admin.fileUpload.addAnotherFile)},actions:{showSelectedTimeFormat:function(e){e.preventDefault(),0<jQuery('input[name="_event_time_format"]').length&&Admin.timeFormatSettings()}},author:{changeAuthor:function(e){return jQuery(this).closest("p").find(".current-author").hide(),jQuery(this).closest("p").find(".change-author").show(),!1}},settings:{selectEventExpiryOption:function(e){"days"==jQuery("#setting-event_manager_submission_expire_options option:selected").val()?jQuery("#setting-event_manager_submission_duration").closest("tr").show():jQuery("#setting-event_manager_submission_duration").closest("tr").hide(),e.preventDefault()}},fileUpload:{addFile:function(e){e.preventDefault(),n=jQuery(this).closest(".file_url"),a=n.find("input"),t||(t=wp.media.frames.file_frame=wp.media({title:jQuery(this).data("uploader_title"),button:{text:jQuery(this).data("uploader_button_text")},multiple:!1})).on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery(a).val(attachment.url)}),t.open()},addAnotherFile:function(e){e.preventDefault();jQuery(this).closest(".form-field");var t=jQuery(this).data("field_name"),a=jQuery(this).data("field_placeholder"),n=jQuery(this).data("uploader_button_text"),i=jQuery(this).data("uploader_button");jQuery(this).before('<span class="file_url"><input type="text" name="'+t+'[]" placeholder="'+a+'" /><button class="button button-small wp_event_manager_upload_file_button" data-uploader_button_text="'+n+'">'+i+"</button></span>")}}}})();jQuery(document).ready(function(e){Admin.init()});

    Best Regards,
    Priya

    Thread Starter paulbuijs

    (@paulbuijs)

    Thank you for your help. That kind of worked. Now I have the URL field available which works but the upload or add file functions still do not.

    What is the ETA on the plugin update?

    I have been considering buying the add-ons package but am hesitant to do so with the lack of plugin updates and open action items such as this and the font styling issues in the filters.

    Plugin Support Priya Goenka

    (@priyagoenka)

    Hi @paulbuijs

    Can you please clear your cookies and check. It should definitely work.
    You must not face an issue related to upload.

    Regarding the update, of the core plugin, it may take one week(probable) to release.

    Regards
    Priya

    Thread Starter paulbuijs

    (@paulbuijs)

    Yes it works now. Thank you!!!

    This item should not be marked resolved until the plugin updates have come out. I’m having the same problem and am following this notice.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Event Banner Upload Does not work after WP update 5.5.’ is closed to new replies.