• Resolved Tucker

    (@tsctmodnet)


    My form is located at: http://www.smoketournament.com/sign-up/

    After hitting submit, it is supposed to redirect to a payment page where users can pay their entry fee via PayPal. It was working fine, but after updating WordPress and my plugins, the redirect no longer works.

    The code I had in the Additional Settings box was:
    on_sent_ok: "location.replace('http://www.smoketournament.com/payment/');"

    I checked the Contact Form 7 website and saw new code, so I changed it to this:
    on_sent_ok: "location = 'http://www.smoketournament.com/payment/';"

    It shows the form submits and I get the email, but it doesn’t redirect. Can someone please tell me what I need to do to fix it? Thank you.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Tucker

    I tested your form. Looks like on_sent_ok is not working so you don’t get the redirect. Usually on_sent_ok not working indicates a Javascript Conflict.

    I looked at your page in Firebug but didn’t get any Javascript errors. I see however that Nextgen Gallery is loading some Javascript on this page which it probably shouldn’t do – so I would disable Nextgen Gallery to see if that resolves the problem. If so you can look at rolling back Nextgen Gallery.

    For more general information on resolving Javascript Conflicts see http://wiki.simple-press.com/installation/troubleshooting/plugin-conflicts/.

    Thread Starter Tucker

    (@tsctmodnet)

    Thank you for the prompt reply, buzztone! I did as you suggested and disabled the Nextgen Gallery plugin and sure enough, the redirect worked. I would have never thought an image gallery plugin would have messed with a form, especially since the gallery wasn’t even being used on the same page. I’ll have to look for a different image gallery plugin.

    Thank you again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirect stopped working’ is closed to new replies.