Here's the form in question: http://elizabethhagen.com/talk-to-elizabeth/
Sometimes when I submit this form, I am redirected to this page. This should not be the case. The page should just reload and display the success message, which it does most of the time.
I have not been able to establish a pattern in why the redirection happens sometimes but not others - very frustrating. I can't intentionally recreate the problem. I've tested the form many times. The redirection happens about 15% of the time.
The two pages are unrelated. They don't link to each other, they don't have the same parent page, the second page doesn't even have a form on it other than the shopping cart buttons in the sidebar.
The only thing they have in common is that they are the two pages on the site that show an alternative logo in the header. This is done by this bit of code:
<?php
$logo=""; // Gives an initial value to the variable.
$pageid = $post->ID; // Got this code from http://stackoverflow.com/questions/1937507/run-php-functions-on-selected-wordpress-pages.
if ($pageid == 674) { //GYBWC Registration page
$logo = "logo_gybwc.gif";
$logo_alt = "Grow Your Business With Confidence with Elizabeth Hagen";
$logo_class = "gyblogo";
} elseif ($pageid == 1219) { //Talk to Elizabeth
$logo = "logo_tte.gif";
$logo_alt = "Talk to Elizabeth";
$logo_class = "ttelogo";
} else {
$logo = "hagen_logo.gif";
$logo_alt="Elizabeth Hagen - What are You Waiting For?";
$logo_class = "logo";
}
echo "<img src=\"http://www.elizabethhagen.com/wp-content/themes/eh/images/$logo\" alt=\"$logo_alt\" class=\"$logo_class\" />"
?>
Also, I can't tell if the form results are actually processing when the redirection happens. Since I can't intentionally reproduce the problem, it's hard to test.
When I first discovered this problem, I reverted from CF7 3.0.1 to 2.4.6. That's what is there now. I thought this had fixed it until I got the problem again today.
The form results are set to send to me instead of the client, so if anyone needs to actually submit the form to test it, go for it.
Thanks for any help.
Kim
PS - plug-ins installed are: Adminimize, Akismet, All in One SEO, Constant Contact Widget 2.0, Contact Form 7, Custom Class Selector, Facebook Like, Google Calendar Events, Google XML Sitemaps, Quotes Collection, TinyMCE Advanced, Twitter Widget Pro, Under Construction, Widget Logic, WordPress Meta Robots, WP-RSSImport, WP Post Columns.
The site also has the Constant Contact Widget 2.0 plug-in, but it's not being used. I'm not going to delete it yet - seems like it's best to leave the environment the same for anyone who is testing.