404 Error Contact Form 7 ajax form submitting












0















The contact form does not work, and affects loading after one try. The chrome console shows the error message:



POST http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback 404 (Not Found)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
wpcf7.submit @ scripts.js?ver=5.0.3:346
(anonymous) @ scripts.js?ver=5.0.3:53
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3


How to solve this issue? thanks in advance










share|improve this question

























  • can you please share your form data and contact form 7 version

    – Mukesh Panchal
    Jul 17 '18 at 6:22













  • this is my form data <p class="inp_user">[text* your-name placeholder "Your Name"]</p><p class="inp_tit">[text your-subject placeholder "Title"]</p><p class="inp_mail">[email* your-email placeholder "Email"]</p><p class="inp_ph">[text* your-phone placeholder "Phone"]</p><p class="inp_com">[textarea your-message placeholder "Comments & Questions"]</p><p>[recaptcha]</p><div class="sub_block"><span class="sub_but">[submit class:sub "SEND REQUEST"]</span></div> and contact form version is 5.0.3 and word press version is 4.9.7 @Mukesh Panchal

    – Arun Kumar
    Jul 17 '18 at 6:33













  • can you please share your online demo url as i don't get any error when i use above CF7 code.

    – Mukesh Panchal
    Jul 17 '18 at 8:25
















0















The contact form does not work, and affects loading after one try. The chrome console shows the error message:



POST http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback 404 (Not Found)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
wpcf7.submit @ scripts.js?ver=5.0.3:346
(anonymous) @ scripts.js?ver=5.0.3:53
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3


How to solve this issue? thanks in advance










share|improve this question

























  • can you please share your form data and contact form 7 version

    – Mukesh Panchal
    Jul 17 '18 at 6:22













  • this is my form data <p class="inp_user">[text* your-name placeholder "Your Name"]</p><p class="inp_tit">[text your-subject placeholder "Title"]</p><p class="inp_mail">[email* your-email placeholder "Email"]</p><p class="inp_ph">[text* your-phone placeholder "Phone"]</p><p class="inp_com">[textarea your-message placeholder "Comments & Questions"]</p><p>[recaptcha]</p><div class="sub_block"><span class="sub_but">[submit class:sub "SEND REQUEST"]</span></div> and contact form version is 5.0.3 and word press version is 4.9.7 @Mukesh Panchal

    – Arun Kumar
    Jul 17 '18 at 6:33













  • can you please share your online demo url as i don't get any error when i use above CF7 code.

    – Mukesh Panchal
    Jul 17 '18 at 8:25














0












0








0








The contact form does not work, and affects loading after one try. The chrome console shows the error message:



POST http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback 404 (Not Found)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
wpcf7.submit @ scripts.js?ver=5.0.3:346
(anonymous) @ scripts.js?ver=5.0.3:53
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3


How to solve this issue? thanks in advance










share|improve this question
















The contact form does not work, and affects loading after one try. The chrome console shows the error message:



POST http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback 404 (Not Found)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
wpcf7.submit @ scripts.js?ver=5.0.3:346
(anonymous) @ scripts.js?ver=5.0.3:53
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3


How to solve this issue? thanks in advance







javascript wordpress contact-form-7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 17 '18 at 5:39









Kiran Shahi

4,74531643




4,74531643










asked Jul 17 '18 at 4:59









Arun KumarArun Kumar

4210




4210













  • can you please share your form data and contact form 7 version

    – Mukesh Panchal
    Jul 17 '18 at 6:22













  • this is my form data <p class="inp_user">[text* your-name placeholder "Your Name"]</p><p class="inp_tit">[text your-subject placeholder "Title"]</p><p class="inp_mail">[email* your-email placeholder "Email"]</p><p class="inp_ph">[text* your-phone placeholder "Phone"]</p><p class="inp_com">[textarea your-message placeholder "Comments & Questions"]</p><p>[recaptcha]</p><div class="sub_block"><span class="sub_but">[submit class:sub "SEND REQUEST"]</span></div> and contact form version is 5.0.3 and word press version is 4.9.7 @Mukesh Panchal

    – Arun Kumar
    Jul 17 '18 at 6:33













  • can you please share your online demo url as i don't get any error when i use above CF7 code.

    – Mukesh Panchal
    Jul 17 '18 at 8:25



















  • can you please share your form data and contact form 7 version

    – Mukesh Panchal
    Jul 17 '18 at 6:22













  • this is my form data <p class="inp_user">[text* your-name placeholder "Your Name"]</p><p class="inp_tit">[text your-subject placeholder "Title"]</p><p class="inp_mail">[email* your-email placeholder "Email"]</p><p class="inp_ph">[text* your-phone placeholder "Phone"]</p><p class="inp_com">[textarea your-message placeholder "Comments & Questions"]</p><p>[recaptcha]</p><div class="sub_block"><span class="sub_but">[submit class:sub "SEND REQUEST"]</span></div> and contact form version is 5.0.3 and word press version is 4.9.7 @Mukesh Panchal

    – Arun Kumar
    Jul 17 '18 at 6:33













  • can you please share your online demo url as i don't get any error when i use above CF7 code.

    – Mukesh Panchal
    Jul 17 '18 at 8:25

















can you please share your form data and contact form 7 version

– Mukesh Panchal
Jul 17 '18 at 6:22







can you please share your form data and contact form 7 version

– Mukesh Panchal
Jul 17 '18 at 6:22















this is my form data <p class="inp_user">[text* your-name placeholder "Your Name"]</p><p class="inp_tit">[text your-subject placeholder "Title"]</p><p class="inp_mail">[email* your-email placeholder "Email"]</p><p class="inp_ph">[text* your-phone placeholder "Phone"]</p><p class="inp_com">[textarea your-message placeholder "Comments & Questions"]</p><p>[recaptcha]</p><div class="sub_block"><span class="sub_but">[submit class:sub "SEND REQUEST"]</span></div> and contact form version is 5.0.3 and word press version is 4.9.7 @Mukesh Panchal

– Arun Kumar
Jul 17 '18 at 6:33







this is my form data <p class="inp_user">[text* your-name placeholder "Your Name"]</p><p class="inp_tit">[text your-subject placeholder "Title"]</p><p class="inp_mail">[email* your-email placeholder "Email"]</p><p class="inp_ph">[text* your-phone placeholder "Phone"]</p><p class="inp_com">[textarea your-message placeholder "Comments & Questions"]</p><p>[recaptcha]</p><div class="sub_block"><span class="sub_but">[submit class:sub "SEND REQUEST"]</span></div> and contact form version is 5.0.3 and word press version is 4.9.7 @Mukesh Panchal

– Arun Kumar
Jul 17 '18 at 6:33















can you please share your online demo url as i don't get any error when i use above CF7 code.

– Mukesh Panchal
Jul 17 '18 at 8:25





can you please share your online demo url as i don't get any error when i use above CF7 code.

– Mukesh Panchal
Jul 17 '18 at 8:25












2 Answers
2






active

oldest

votes


















1














I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.






share|improve this answer































    0














    You Error message clearly shows that particular endpoint doesn't exists.



    http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback


    What i remember, the Wordpress json API mappings has base address of



    http://example.com/wp-json/wp/v2/


    So, try once if your url is working with this base address or not. Change url to




    http://example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/feedback




    Or just check proper mappings from http://example.com/wp-json.




    This is not a Wordpress pre-defined endpoint and is enabled by Third
    party plugin mainly contact-form-7. Make sure you have installed
    this plugin to your wordpress.




    PS : Make sure you are using valid authentication method as certain end-points won't work without that.






    share|improve this answer


























    • Please tell how to change the url @Atul Sharma

      – Arun Kumar
      Jul 17 '18 at 5:06











    • Check scripts.js file and search for wpcf7.submit . There you will find the URL.

      – Atul Sharma
      Jul 17 '18 at 5:07











    • Thank you for your quick response. let me check @Atul Sharma

      – Arun Kumar
      Jul 17 '18 at 5:08













    • Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

      – Atul Sharma
      Jul 17 '18 at 5:09













    • i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

      – Arun Kumar
      Jul 17 '18 at 5:21













    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51373506%2f404-error-contact-form-7-ajax-form-submitting%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.






    share|improve this answer




























      1














      I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.






      share|improve this answer


























        1












        1








        1







        I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.






        share|improve this answer













        I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 22 '18 at 3:49









        BluePBlueP

        111




        111

























            0














            You Error message clearly shows that particular endpoint doesn't exists.



            http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback


            What i remember, the Wordpress json API mappings has base address of



            http://example.com/wp-json/wp/v2/


            So, try once if your url is working with this base address or not. Change url to




            http://example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/feedback




            Or just check proper mappings from http://example.com/wp-json.




            This is not a Wordpress pre-defined endpoint and is enabled by Third
            party plugin mainly contact-form-7. Make sure you have installed
            this plugin to your wordpress.




            PS : Make sure you are using valid authentication method as certain end-points won't work without that.






            share|improve this answer


























            • Please tell how to change the url @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:06











            • Check scripts.js file and search for wpcf7.submit . There you will find the URL.

              – Atul Sharma
              Jul 17 '18 at 5:07











            • Thank you for your quick response. let me check @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:08













            • Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

              – Atul Sharma
              Jul 17 '18 at 5:09













            • i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:21


















            0














            You Error message clearly shows that particular endpoint doesn't exists.



            http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback


            What i remember, the Wordpress json API mappings has base address of



            http://example.com/wp-json/wp/v2/


            So, try once if your url is working with this base address or not. Change url to




            http://example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/feedback




            Or just check proper mappings from http://example.com/wp-json.




            This is not a Wordpress pre-defined endpoint and is enabled by Third
            party plugin mainly contact-form-7. Make sure you have installed
            this plugin to your wordpress.




            PS : Make sure you are using valid authentication method as certain end-points won't work without that.






            share|improve this answer


























            • Please tell how to change the url @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:06











            • Check scripts.js file and search for wpcf7.submit . There you will find the URL.

              – Atul Sharma
              Jul 17 '18 at 5:07











            • Thank you for your quick response. let me check @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:08













            • Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

              – Atul Sharma
              Jul 17 '18 at 5:09













            • i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:21
















            0












            0








            0







            You Error message clearly shows that particular endpoint doesn't exists.



            http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback


            What i remember, the Wordpress json API mappings has base address of



            http://example.com/wp-json/wp/v2/


            So, try once if your url is working with this base address or not. Change url to




            http://example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/feedback




            Or just check proper mappings from http://example.com/wp-json.




            This is not a Wordpress pre-defined endpoint and is enabled by Third
            party plugin mainly contact-form-7. Make sure you have installed
            this plugin to your wordpress.




            PS : Make sure you are using valid authentication method as certain end-points won't work without that.






            share|improve this answer















            You Error message clearly shows that particular endpoint doesn't exists.



            http://example.com/wp-json/contact-form-7/v1/contact-forms/50/feedback


            What i remember, the Wordpress json API mappings has base address of



            http://example.com/wp-json/wp/v2/


            So, try once if your url is working with this base address or not. Change url to




            http://example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/feedback




            Or just check proper mappings from http://example.com/wp-json.




            This is not a Wordpress pre-defined endpoint and is enabled by Third
            party plugin mainly contact-form-7. Make sure you have installed
            this plugin to your wordpress.




            PS : Make sure you are using valid authentication method as certain end-points won't work without that.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 17 '18 at 5:14

























            answered Jul 17 '18 at 5:04









            Atul SharmaAtul Sharma

            3,43942437




            3,43942437













            • Please tell how to change the url @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:06











            • Check scripts.js file and search for wpcf7.submit . There you will find the URL.

              – Atul Sharma
              Jul 17 '18 at 5:07











            • Thank you for your quick response. let me check @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:08













            • Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

              – Atul Sharma
              Jul 17 '18 at 5:09













            • i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:21





















            • Please tell how to change the url @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:06











            • Check scripts.js file and search for wpcf7.submit . There you will find the URL.

              – Atul Sharma
              Jul 17 '18 at 5:07











            • Thank you for your quick response. let me check @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:08













            • Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

              – Atul Sharma
              Jul 17 '18 at 5:09













            • i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

              – Arun Kumar
              Jul 17 '18 at 5:21



















            Please tell how to change the url @Atul Sharma

            – Arun Kumar
            Jul 17 '18 at 5:06





            Please tell how to change the url @Atul Sharma

            – Arun Kumar
            Jul 17 '18 at 5:06













            Check scripts.js file and search for wpcf7.submit . There you will find the URL.

            – Atul Sharma
            Jul 17 '18 at 5:07





            Check scripts.js file and search for wpcf7.submit . There you will find the URL.

            – Atul Sharma
            Jul 17 '18 at 5:07













            Thank you for your quick response. let me check @Atul Sharma

            – Arun Kumar
            Jul 17 '18 at 5:08







            Thank you for your quick response. let me check @Atul Sharma

            – Arun Kumar
            Jul 17 '18 at 5:08















            Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

            – Atul Sharma
            Jul 17 '18 at 5:09







            Also, check if contact-form-7 or some similar named plugin is installed or not. As this endpoint is from plugin itself.

            – Atul Sharma
            Jul 17 '18 at 5:09















            i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

            – Arun Kumar
            Jul 17 '18 at 5:21







            i will try with example.com/wp-json/contact-form-7/v2/contact-forms/50/feedback and example.com/wp-json/wp/v2/contact-form-7/v1/contact-forms/50/… but it will throws the same error if there any alterantive solution @Atul Sharma

            – Arun Kumar
            Jul 17 '18 at 5:21




















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51373506%2f404-error-contact-form-7-ajax-form-submitting%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'