• Resolved syl86c

    (@syl86c)


    Hello,

    I am using the plugin to develop my website and I am using Chrome.

    I had an issue with the Preview event panel when creating an event with the frontend.
    When I clicked on the button “Submit Listing”, the page was redirected to the form for entering the event information.
    And the status of the event stayed in “Preview” state, instead of “Pending” or “Published”.

    I used the code inspector to understand the request send to the server when I pressed “Submit Listing”, and I found out that in the post request only the value of the button was send to the server.
    It was missing the following parameters: event_id=308, step=1 and event_manager_form=submit-event.

    It seems than Chrome has an issue with the <div></div> tags inside the <form></form> tags.

    So I modified the file event-preview.php to put the <form></from> tags inside the <div></div>

    Please find hereafter the modification done on the file event-preview.php

    <div class="event_listing_preview_title">
        <form method="post" id="event_preview" action="<?php echo esc_url( $form->get_action() ); ?>">
    	
    		<input type="submit" name="continue" id="event_preview_submit_button" class="button event-manager-button-submit-listing" value="<?php echo esc_attr( apply_filters( 'submit_event_step_preview_submit_text', __( 'Submit Listing →', 'wp-event-manager' ) ) ); ?>" />
    		<input type="submit" name="edit_event" class="button event-manager-button-edit-listing" value="<?php esc_attr_e( '← Edit listing', 'wp-event-manager' ); ?>" />
    		<h2><?php esc_html_e( 'Preview', 'wp-event-manager' ); ?></h2>
    		<input type="hidden" name="event_id" value="<?php echo esc_attr( $form->get_event_id() ); ?>" />
    		<input type="hidden" name="step" value="<?php echo esc_attr( $form->get_step() ); ?>" />
    		<input type="hidden" name="event_manager_form" value="<?php echo esc_attr( $form->get_form_name() ); ?>" />
        </form>
    </div>
    <div class="event_listing_preview single_event_listing">
        <?php get_event_manager_template_part( 'content-single', 'event_listing' ); ?>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @syl86c ,

    Does this works for you ? I think it should be some page configuration issue or some js is preventing from submitting page.

    I am not having any issue with default theme. Please try with default theme if it works then it might be theme conflict.

    If you still doesn’t find any solution please contact here https://support.wp-eventmanager.com/

    Thank you

    Thread Starter syl86c

    (@syl86c)

    Hello @hiteshmakvana

    Thank you very much for your answer.

    Yes the solution described in my first post is working for me.

    Indeed, I was not using the default theme. I will try it again with the default theme.

    Thank you,
    Sylvain

    Hi @syl86c ,

    Thank you for the providing updates on the issue.

    Thank you

    Thread Starter syl86c

    (@syl86c)

    Hi @hiteshmakvana,

    I just tried with the default theme (Twenty Nineteen) and I have the same behavior.

    I noticed that if all the 5 <input> tags are all together inside a <div></div> then I have the expected behavior.

    My Chrome Version is 75.0.3770.142 (Build officiel) (32 bits)

    Thank you,
    Sylvain

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Submit event from the frontend’ is closed to new replies.