GetSimple Support Forum

Full Version: Contact form error - Call to undefined function set_contact_page()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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.
That’s one you could use. On the forum, cumbe has made one as well.
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.