• Hi,

    I’m running a couple of sites with WP 2.9.2, Contact Form 7 (CF7) version 2.1.1

    On submitting a for created in CF7, the rotating arrows continue to spin, with no ensuing error or success messages.

    Until we upgrade to IIS7 or, <cough> Apache, we are using the 404-handler.php workaround (https://www.ikailo.com) to enable pretty permalinks.

    I disabled all other plugins, and tried again.

    Looking at the generated source code for the form, the form action is trying to call <form action=”/contact/#wpcf7-f1-p459-o1

    This doesn’t work

    Reverting to the default permalink settings:
    <form action=”/?page_id=123#wpcf7-f1-p459-o1

    and it works…

    Any suggestions?

    https://www.ads-software.com/extend/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi you, i had the same problem wordpress running on IIS 6 in combination of the 404-handler.php.

    i’ve edited the classes.php

    1st.
    in the function form_html() start a global $post

    2nd. i’ve added tose 2 lines, just before the form tag starts.
    title = get_the_title();
    $url = str_replace($title.”/”, “?page_id=”.$post->ID.””, $url);

    <form action=”/contact/#wpcf7-f1-p459-o1
    or
    <form action=”/contact123/#wpcf7-f1-p459-o1

    will be converted to
    <form action=”/?page_id=123#wpcf7-f1-p459-o1

    maybe there’s an other method to do so but i’m very new at wordpress and this seems to do the trick.

    Thread Starter sokratesagogo

    (@sokratesagogo)

    Hi maartenvo

    In the end I sorted this by replacing

    $url = wpcf7_get_request_uri();

    with

    $url = ‘/index.php/’.parse_url($_SERVER[‘REQUEST_URI’]);

    in the Contact 7 classes.php file (around line 41)

    But I appreciate the time you took to reply to me!

    All the best, Sokratesagogo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Contact Form 7] contact form 7 – iis – 404-handler.php’ is closed to new replies.