Forums

[Plugin: Contact Form 7] This code "#wpcf7-f1-p125-o1" is generated after submit (6 posts)

  1. turborx8
    Member
    Posted 2 years ago #

    This code "#wpcf7-f1-p125-o1" is added to my contact page url after somebody sends me an email through the contact7 plugin.

    Example:
    http://www.mydomain.com/contact-us#wpcf7-f1-p125-o1

    This generates a 404 error every time an email is sent.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Posted 2 years ago #

    Where is your site? Seemingly mydomain.com is not your site...

  3. mtonumaa
    Member
    Posted 2 years ago #

    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?

  4. ardgedee
    Member
    Posted 2 years ago #

    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.

  5. ardgedee
    Member
    Posted 2 years ago #

    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.

  6. jayarathina
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic