This topic has 7 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #54747
     noorbeast
    Participant

    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?

    #54798
     sharmstr
    Moderator

    Turn 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #54831
     noorbeast
    Participant

    Thanks sharmstr but debugging is already set in wp-config.php as: define(‘WP_DEBUG’, false);

    Any other suggestions?

    #54833
     sharmstr
    Moderator

    can 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #54839
     noorbeast
    Participant

    Sure, you can reproduce the bug using the scrolling email box here: http://newthingsnow.com.au/

    #54843
     sharmstr
    Moderator

    You’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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #54898
     noorbeast
    Participant

    Thanks 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?

    #54941
     sharmstr
    Moderator

    You probably have to add it to the form. you can copy the form code into your child’s function file.

    COPY CODE
    
    function 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?