• Resolved zetoun17

    (@zetoun17)


    this error is displayed when i submit the form in the first step
    <div class=”ajax-error”>Unexpected token < in JSON at position 0</div>

    this is the request response in devtools
    /wp-json/contact-form-7/v1/contact-forms/2479/feedback
    header :
    Status Code: 302

    responde header :
    location: https://www.example.com/form-2-5/

    Solution :
    in file cf7msm.php
    search function cf7msm_mail_sent()
    replace
    if ( !wpcf7_load_js() || !(defined( ‘REST_REQUEST’ ) && REST_REQUEST) && !(defined( ‘DOING_AJAX’ ) && DOING_AJAX) )
    with
    if ( !wpcf7_load_js() && !(defined( ‘REST_REQUEST’ ) && REST_REQUEST) && !(defined( ‘DOING_AJAX’ ) && DOING_AJAX) )

    I hope this bug will be fixed in the next update

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bug http error 302 after submit’ is closed to new replies.