Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact form error - Call to undefined function set_contact_page()
#1
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!
Reply
#2
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
Is that the Simple Contact Form? http://internet54.com/getsimple/simple-contact-plugin
Reply
#4
That’s one you could use. On the forum, cumbe has made one as well.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#5
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.
Rejoice! For very bad things are about to happen.
Reply




Users browsing this thread: 2 Guest(s)