• I get this error\
    Warning: Cannot modify header information – headers already sent by (output started at /home/greghark/public_html/spiritastrology.com/wp-content/plugins/styles-and-layouts-for-gravity-forms/display/class-styles.php:241) in /home/greghark/public_html/spiritastrology.com/wp-includes/pluggable.php on line 1210

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Similar issue here.

    The problem is the class-styles.php file. It’s included in gf_stla_show_css_frontend function which seems to be loaded in frontend only but it’s loaded in admin as well.

    My workaround is to change the code from:

    	function gf_stla_show_css_frontend($form){
    
    		//show css in frontend
    		$style_current_form = get_option( 'gf_stla_form_id_'.$form['id'] )

    To:

    	function gf_stla_show_css_frontend($form){
    
    		if( is_admin() )
    			return $form;
    
    		//show css in frontend
    		$style_current_form = get_option( 'gf_stla_form_id_'.$form['id'] )

    Suggestion / fix from plugin’s authors much appreciated @wpmonks.

Viewing 1 replies (of 1 total)
  • The topic ‘getting error when submitting form’ is closed to new replies.