GetSimple Support Forum
Contact form error - Call to undefined function set_contact_page() - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Contact form error - Call to undefined function set_contact_page() (/showthread.php?tid=977)



Contact form error - Call to undefined function set_contact_page() - simplesharps - 2010-09-23

I'm using per page components (http://get-simple.info/forum/viewtopic.php?id=214) to show the contact form on the contact page. Inside the component I have:

Code:
<form action="<?php get_page_url(); ?>" method="post" class="contactform" >
    <?php set_contact_page(); ?>
    <p><label>Name:</label><input type="text" class="text" name="contact[name]" /></p>
    <p><label>Email:</label><input type="text" class="text" name="contact[email]" /></p>
    <p><label>Message:</label><textarea class="text" name="contact[message]" ></textarea></p>
    <div class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></div>
    <p><input type="submit" class="submit" value="Send Email" id="contact-submit" name="contact-submit" /></p>
</form>

Which is producing this error:

Code:
Fatal error: Call to undefined function set_contact_page() in C:\localhost\sitename.local\theme\Default_Simple\functions.php(14) : eval()'d code on line 2

What am I doing wrong? Thanks!


Contact form error - Call to undefined function set_contact_page() - Zegnåt - 2010-09-24

You’re not doing anything wrong. GetSimple 2.03 removes the built-in contact form so you will have to replace it with a contact form plugin.


Contact form error - Call to undefined function set_contact_page() - simplesharps - 2010-09-24

Is that the Simple Contact Form? http://internet54.com/getsimple/simple-contact-plugin


Contact form error - Call to undefined function set_contact_page() - Zegnåt - 2010-09-24

That’s one you could use. On the forum, cumbe has made one as well.


Contact form error - Call to undefined function set_contact_page() - Knitter - 2010-10-18

Just a reminder, could some dev update the Theme Template Tags' page, http://get-simple.info/docs/theme-codex/ , I just stumbled upon the same problem and was a bit lost about what was going on as the official documentation stated that the function existed.

Not a big problem but could help other users that, like me, are new to GetSimple.

Thanks.