Page 1 of 1
Contact Form results page returns errors
Posted: Wed Mar 28, 2007 7:34 am
by digitalfilm
With a static page as my "home page" the contact form no longer functions properly as it did before I made my home page a static page.
Upon submitting the contact form the #Feedback "thank you" message is displayed correctly. There is an odd mish-mash of text from the home page interspersed with unpublished and published static pages.
A fully commented screen grab can be seen at:
http://group8020.com/images/contact_errors.jpg
Any help would be greatly appreciated!
Posted: Wed Mar 28, 2007 3:56 pm
by mgroeninger
I assume you are using the dynamic contact form option rather than the static version? (Ie, Use the dynamic tpl? is set to something other than standard?)
Posted: Wed Mar 28, 2007 4:18 pm
by mgroeninger
I can't replicate this (easily) on my test blog and I need to run off to work. Can you try moving the Contact Form event plugin to a place before the static page plugin in the event list and see what happens?
I know this would just be a work around but I am curious as to whether it has any impact.
Garvin, any thoughts? I can't see anything in the contact plugin code that might cause this. I am kind of assuming it is happening in this block somewhere:
Code: Select all
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile, null, null, false);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion;
if ($this->get_config('markup') == TRUE) {
$entry = array('body' => $content);
serendipity_plugin_api::hook_event('frontend_display', $entry);
echo $entry['body'];
} else {
echo $content;
}
But I don't know smarty well enough to know if that fetch call is likely to pull other data in...
Thanks... it worked!
Posted: Thu Mar 29, 2007 11:35 pm
by digitalfilm
I'm not sure what exactly solved this problem, but I put Statiic Pages at the very top followed immediately by Contact Form. I found that the homepage was not formatted as an article, although it appeared as one.
Long story short I am back in business and can get on with my "Google Funnel" project. Thanks!
Posted: Mon May 28, 2007 11:31 am
by bungybunny
I was having a similar problem whereby the redirect to index.php#feedback resulted in just the 'home' page being displayed.
Resolved it by placing the contact from plugin above the static page plugin