Where is your site? Seemingly mydomain.com is not your site…
i think i have a similar problem:
my site: http://tinyurl.com/yzx3vh2
When you scroll down the page, you’ll see the contact form
After i fill the form and click send, the end of my url reads /#wpcf7-f2-p34-o1
It seems to be some sort of an html anchor and it breaks my page (black areas appear).
Can you please help remove the anchor?
I have a similar problem as well on one site. When submitting a form, the mail is sent successfully but the page loads as example.com/?page_id=233#wpcf7-f1-p233-o1
, which is handled as 404 Not Found. (page_id=233
is a legitimate page, and without the anchor, example.com/?page_id=233
loads properly.)
It appears that the $post
object is defined on example.com/?page_id=233
but is not defined on example.com/?page_id=233#wpcf7-f1-p233-o1
.
When turning on all error reporting, I see the following:
Before submission, when I load the page with the form, there is a long series of NOTICEs: (the first two are: Notice: Undefined variable: uri in example/wp-content/plugins/contact-form-7/includes/classes.php on line 43 and Notice: Undefined index: values in example/wp-content/plugins/contact-form-7/includes/shortcodes.php on line 66)
After submission the mail is sent successfully, and there are NOTICEs such as the following: Notice: Trying to get property of non-object in example/wp-includes/comment-template.php on line 739.
I solved my form submission problem:
If the name of one of the short tags is name
, the page is 404 after submission. Avoid short tags such as [text name]
, and use [text your-name]
as shown in the example form the plugin provides, or something similar.
I have got the same problem too (look here). I tried the solution suggested by ardgedee. But didnt work for me. Anyone else found the solution or knows the reason for this problem?