• Resolved jmgomez1986

    (@jmgomez1986)


    I want to use the contact form of “Contact Form 7” but when I send, although I receive the email, I receive the message “Unexpected token <in JSON” on the screen, so I understand it is a problem of the JSON assembly, how can I solve? Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Ales

    (@alesmal)

    Hello, what CMP theme are you using, and what is the code for the CF7 you have set?

    Thanks Ales

    Thread Starter jmgomez1986

    (@jmgomez1986)

    Hi, thanks for responding. The theme that I have active in CMP is from the free version and is called “Countdown” version 3.5.7. The “Contact Frm 7” form is as follows:

    <label> Tu nombre (requerido)
        [text* your-name] </label>
    
    <label> Tu correo electrónico (requerido)
        [email* your-email] </label>
    
    [submit "Enviar"]

    Should any additional adjustment be made?

    This is the JSON that CM7 is responding to me:

    {“into”:”#wpcf7-f429-o1″,”status”:”mail_sent”,”message”:”Gracias por tu mensaje. Ha sido enviado.”}

    And this is the JSON that returns the default theme when subscribed:

    {“status”:”1″,”message”:”Gracias! Su solicitud de registro fue exitosa.”}

    Plugin Author Ales

    (@alesmal)

    Hello, it seems authors of Contact Form 7 changed a code little bit and we did not adjust our part yet. I will make update to correctly parse the response from CF7.

    But it is just a form to send emails, it won’t store the subscribers. If you want to get the subscribers then you should use our CMP subscribe form, or use another 3rd party plugin with subscribe function.

    Ales

    Thread Starter jmgomez1986

    (@jmgomez1986)

    I understand, this will allow me to use a CM7 form but I lose the Subscription functionality. I could only send an email.

    Thank you very much, I hope a quick response.

    Plugin Author Ales

    (@alesmal)

    If you use CF7 form in our subscription form then you cannot store emails – CF7 does not have such functionality. You can choose between send emails via CF7 or use our subscribe form for subscription(or another 3rd party plugin which can store emails).

    Thread Starter jmgomez1986

    (@jmgomez1986)

    Ok, thanks.

    You could also see the JSON parsing?

    Plugin Author Ales

    (@alesmal)

    Yes, same JSON error on my dev server, I have the update ready – I will publish it this week for sure.

    A.

    Thread Starter jmgomez1986

    (@jmgomez1986)

    Thanks

    Plugin Author Ales

    (@alesmal)

    Check out 3.5.8 version.

    cheers Ales

    Thread Starter jmgomez1986

    (@jmgomez1986)

    Now the error is the endponint, send a 404 and not the reply message of the form that worked before

    Request URL: https://niteothemes.com/dev/index.php?rest_route=/contact-form-7/v1/contact-forms/429/feedback
    Request Method: POST
    Status Code: 404 Not Found

    {"code":"wpcf7_not_found","message":"The requested contact form was not found.","data":{"status":404}}

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

The topic ‘Unexpected token <in JSON’ is closed to new replies.