404 Error Contact Form 7 ajax form submitting
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
add a comment |
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
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
add a comment |
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
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
javascript wordpress contact-form-7
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.
add a comment |
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 mainlycontact-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.
Please tell how to change the url @Atul Sharma
– Arun Kumar
Jul 17 '18 at 5:06
Checkscripts.js
file and search forwpcf7.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 ifcontact-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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.
add a comment |
I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.
add a comment |
I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.
I had the same issue after migrating the site, re-save the Settings -> Permalinks in wordpress fixed it.
answered Nov 22 '18 at 3:49
BluePBlueP
111
111
add a comment |
add a comment |
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 mainlycontact-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.
Please tell how to change the url @Atul Sharma
– Arun Kumar
Jul 17 '18 at 5:06
Checkscripts.js
file and search forwpcf7.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 ifcontact-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
add a comment |
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 mainlycontact-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.
Please tell how to change the url @Atul Sharma
– Arun Kumar
Jul 17 '18 at 5:06
Checkscripts.js
file and search forwpcf7.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 ifcontact-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
add a comment |
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 mainlycontact-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.
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 mainlycontact-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.
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
Checkscripts.js
file and search forwpcf7.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 ifcontact-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
add a comment |
Please tell how to change the url @Atul Sharma
– Arun Kumar
Jul 17 '18 at 5:06
Checkscripts.js
file and search forwpcf7.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 ifcontact-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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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