Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Daniel Iser

    (@danieliser)

    Also found that the JSON success response gets corrupted with an error in WooCommerce, though that may be unrelated.

    Thread Starter Daniel Iser

    (@danieliser)

    Here is the patch I wrote for the first error.

    Changed

    // if added a bcc
    		$bcc_to = trim( $form['mailer']['bcc_to'] );
    		if( !empty( $bcc_to ) ){
    			$mail['headers'][] = Caldera_Forms::do_magic_tags( 'Bcc: ' . $bcc_to );
    		}
    
    		// if added a replyto
    		$reply_to = trim( $form['mailer']['reply_to'] );
    		if( !empty( $reply_to ) ){
    			$mail['headers'][] = Caldera_Forms::do_magic_tags( 'Reply-To: <' . $reply_to . '>' );
    		}

    To

    // if added a bcc
    		if( !empty( $form['mailer']['bcc_to'] ) ){
    			$bcc_to = trim( $form['mailer']['bcc_to'] );
    			$mail['headers'][] = Caldera_Forms::do_magic_tags( 'Bcc: ' . $bcc_to );
    		}
    
    		// if added a replyto
    		if( !empty( $form['mailer']['reply_to'] ) ){
    			$reply_to = trim( $form['mailer']['reply_to'] );
    			$mail['headers'][] = Caldera_Forms::do_magic_tags( 'Reply-To: <' . $reply_to . '>' );
    		}
    Thread Starter Daniel Iser

    (@danieliser)

    Other than that though gonna add Caldera Forms to our officially support form plugins to use with Popup Maker.

    Plugin Author Josh Pollock

    (@shelob9)

    Can you please submit this as a pull request? https://github.com/desertsnowman/caldera-forms

    Daniel, how and where could I apply the patch ?

    Plugin Author Josh Pollock

    (@shelob9)

    The underlying issue here is now fixed in CF 1.0.3.1

    Thread Starter Daniel Iser

    (@danieliser)

    @josh Pollock – Awesome to hear.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error returned from AJAX when WP_DEBUG enabled.’ is closed to new replies.