Contact Form results page returns errors

Creating and modifying plugins.
Post Reply
digitalfilm
Regular
Posts: 40
Joined: Wed Feb 07, 2007 8:04 pm
Location: New York City
Contact:

Contact Form results page returns errors

Post 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!
Mark

http://5in500.com
Five Hundred People One Question
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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?)
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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...
digitalfilm
Regular
Posts: 40
Joined: Wed Feb 07, 2007 8:04 pm
Location: New York City
Contact:

Thanks... it worked!

Post 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!
Mark

http://5in500.com
Five Hundred People One Question
bungybunny
Regular
Posts: 5
Joined: Thu Jan 18, 2007 11:17 am
Location: Totternhoe, UK
Contact:

Post 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
Think occasionally of the suffering of which you spare yourself the sight
Post Reply