Hi mjamero,
At the moment, the theme does not use the plugin to create the contact form.
If you still face their issue, you can replace the John > layouts > gkcontact.php file with the following code:
<?php
global $gk_tpl;
// check if reCAPTCHA isn't loaded earlier by other plugin
if (!class_exists('ReCaptcha')) {
include_once(get_template_directory() . '/gavern/classes/class.recaptchalib.php');
}
// flag used to detect if the page is validated
$validated = true;
// flag to detect if e-mail was sent
$messageSent = false;
// variable for the input fields output
$output = array(
"name" => '',
"email" => '',
"title" => '',
"message" => ''
);
$publickey = get_option($gk_tpl->name . '_recaptcha_public_key', '');
// if the form was sent
if(isset($_POST['gkcontact-textarea'])) {
// check the name
if(isset($_POST['gkcontact-name'])) {
if(trim($_POST['gkcontact-name']) === '') {
$validated = false;
} else {
$output['name'] = trim(htmlspecialchars(strip_tags($_POST['gkcontact-name'])));
}
}
// check the e-mail
if(isset($_POST['gkcontact-email'])) {
$regex = '/([a-z0-9_]+|[a-z0-9_]+\.[a-z0-9_]+)@(([a-z0-9]|[a-z0-9]+\.[a-z0-9]+)+\.([a-z]{2,4}))/i';
if(trim($_POST['gkcontact-email']) === '' || !preg_match($regex, trim($_POST['gkcontact-email']))) {
$validated = false;
$errors['email'] = __('please enter correct email address.', GKTPLNAME);
} else {
$output['email'] = trim($_POST['gkcontact-email']);
}
}
// check the message title
if(isset($_POST['gkcontact-title'])) {
if(trim($_POST['gkcontact-title']) === '') {
$validated = false;
} else {
$output['title'] = stripslashes(trim(htmlspecialchars(strip_tags($_POST['gkcontact-title']))));
}
}
// check the message content
if(trim($_POST['gkcontact-textarea']) === '') {
$validated = false;
} else {
$output['message'] = stripslashes(trim(htmlspecialchars($_POST['gkcontact-textarea'])));
}
// reCAPTCHA validation
if( isset($_POST['g-recaptcha-response']) &&
$publickey != '' &&
get_option($gk_tpl->name . '_recaptcha_private_key', '') != ''
) {
$reCaptcha = new ReCaptcha("$publickey");
if ($_POST["g-recaptcha-response"]) {
$resp = $reCaptcha->verifyResponse(
$_SERVER["REMOTE_ADDR"],
$_POST["g-recaptcha-response"]
);
} else {
$validated = false;
}
}
// if the all fields was correct
if($validated) {
// send an e-mail
$email = '';
if(isset($_POST['gkcontact-mailto'])) {
$email = $_POST['gkcontact-mailto'];
if(!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", $email)) {
$email = '';
}
}
// if the user specified blank e-mail or not specified it
if(trim($email) == '') {
$email = get_option('admin_email');
}
// e-mail structure
$subject = 'From ' . $output['name'];
$body = "<html><body><h1 style=\"font-size: 24px; border-bottom: 4px solid #EEE; margin: 10px 0; padding: 10px 0; font-weight: normal; font-style: italic;\">".__('Message from', GKTPLNAME)." <strong>".get_bloginfo('name')."</strong></h1>";
if(isset($_POST['gkcontact-name'])) {
$body .= "<div><h2 style=\"font-size: 16px; font-weight: normal; border-bottom: 1px solid #EEE; padding: 5px 0; margin: 10px 0;\">".__('Name:', GKTPLNAME)."</h2><p>".$output['name']."</p></div>";
}
if(isset($_POST['gkcontact-email'])) {
$body .= "<div><h2 style=\"font-size: 16px; font-weight: normal; border-bottom: 1px solid #EEE; padding: 5px 0; margin: 10px 0;\">".__('E-mail:', GKTPLNAME)."</h2><p>".$output['email']."</p></div>";
}
if(isset($_POST['gkcontact-title'])) {
$body .= "<div><h2 style=\"font-size: 16px; font-weight: normal; border-bottom: 1px solid #EEE; padding: 5px 0; margin: 10px 0;\">".__('Title:', GKTPLNAME)."</h2><p>".$output['title']."</p></div>";
}
$body .= "<div><h2 style=\"font-size: 16px; font-weight: normal; border-bottom: 1px solid #EEE; padding: 5px 0; margin: 10px 0;\">".__('Message:', GKTPLNAME)."</h2> ".$output['message']."</div>";
$body .= "</body></html>";
$headers[] = 'From: '.$output['name'].' <'.$output['email'].'>';
$headers[] = 'Reply-To: ' . $output['email'];
$headers[] = 'Content-type: text/html';
$state = wp_mail($email, $subject, $body, $headers);
// output the success message
if($state) {
echo '<p class="gk-notice">'.__('Your message has been successfully sent.', GKTPLNAME).'</p>';
} else {
echo '<p class="gk-warning">'.__('An error occured - your message has not been sent. Please try again.', GKTPLNAME).'</p>';
}
} else {
// output the error message
echo '<p class="gk-warning">'.__('An error occured - all fields are required!', GKTPLNAME).'</p>';
}
}
// EOF
Please send me the username & password of your site, if you still face their issue.