-
Author
-
April 16, 2015 at 05:53 #54747noorbeastParticipant
While the auto scroll contact form works and will send a message it returns this error warning once the message is sent:
Warning: Invalid argument supplied for foreach() in …/includes/plugin.php on line 1422
I get the same error on different Kleo installs. My only option has been to disable the feature, which is not a useful outcome.
Any ideas or resolutions, all of which would be greatly appreciated?
April 16, 2015 at 15:21 #54798sharmstrModeratorTurn off debugging in wp-config.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 16, 2015 at 17:17 #54831noorbeastParticipantThanks sharmstr but debugging is already set in wp-config.php as: define(‘WP_DEBUG’, false);
Any other suggestions?
April 16, 2015 at 17:38 #54833sharmstrModeratorcan I see a link please?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 16, 2015 at 18:31 #54839noorbeastParticipantSure, you can reproduce the bug using the scrolling email box here: http://newthingsnow.com.au/
April 16, 2015 at 18:45 #54843sharmstrModeratorYou’re site isnt printing out version info. Can you either give me admin access or respond privately with info from Theme Options > System Info?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 17, 2015 at 04:49 #54898noorbeastParticipantThanks shamster, I have resolved this. It was that error reporting was turned on in the PHP config for the host (Hostgator). Thanks for your advice, it pointed me in the correct direction.
A final question, now that it is working how can Captcha be enabled for the auto scroll email box?
April 17, 2015 at 16:09 #54941sharmstrModeratorYou probably have to add it to the form. you can copy the form code into your child’s function file.
COPY CODEfunction kleo_contact_form( $atts, $content = null ) { extract(shortcode_atts(array( 'title' => 'CONTACT US' ), $atts)); $output = ''; $output .= '<div class="kleo-quick-contact-wrapper">' .'<a href="#"><i class="icon-mail-alt"></i></a>' .'<div id="kleo-quick-contact">' .'<h4 class="kleo-qc-title">'. $title .'</h4>' .'<p>'. do_shortcode($content).'</p>' .'<form class="kleo-contact-form" action="#" method="post" novalidate>' .'<input type="text" placeholder="'.__("Your Name",'kleo_framework').'" required id="contact_name" name="contact_name" class="form-control" value="" tabindex="276" />' .'<input type="email" required placeholder="' . __("Your Email",'kleo_framework') . '" id="contact_email" name="contact_email" class="form-control" value="" tabindex="277" />' .'<textarea placeholder="' . __("Type your message...",'kleo_framework') . '" required id="contact_content" name="contact_content" class="form-control" tabindex="278"></textarea>' .'<input type="hidden" name="action" value="kleo_sendmail">' .'<button tabindex="279" class="btn btn-default pull-right" type="submit">'. __("Send",'kleo_framework').'</button>' .'<div class="kleo-contact-loading">'. __("Sending",'kleo_framework').' <i class="icon-spinner icon-spin icon-large"></i></div>' .'<div class="kleo-contact-success"> </div>' .'</form>' .'<div class="bottom-arrow"></div>' .'</div>' .'</div><!--end kleo-quick-contact-wrapper-->'; return $output; } add_shortcode('kleo_contact_form', 'kleo_contact_form');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.