• Resolved opintosomemard

    (@opintosomemard)


    Hi, I added Forminator free plugin on my website and created registration form. I got the error each time when submitting the registration form: “An error occurred while processing the form. Please try again.” But it should be “Account registration successful. Click here to login to your account.” Do you know what the problem is? How can I debug this? Thank you in advance. Best Regards, Mard Solomon

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @opintosomemard

    I hope you are doing well today.

    Please export your form, upload it to google drive or dropbox and share a link in your next reply so we could review your fields and test that form on our side and see can we replicate same issue.

    Kind Regards,
    Kris

    Thread Starter opintosomemard

    (@opintosomemard)

    Hi,

    thank you for your response.

    The link to the forminator-rekisterointi-form-export.txt on Google Drive https://drive.google.com/file/d/1BhcFGqdVkFm9P8jvuAzFXsFBVIKiPPWt/view?usp=sharing.

    Best Regards, Mard

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @opintosomemard

    Thank you for sharing the form.

    I’ve imported it to my test site (basic install – only WordPress core, Forminator and Twenty Twenty-Three theme currently) and tested it.

    Form worked fine for me and registration was successful – no errors whatsoever.

    I also checked form configuration and it looks fine too.

    This suggests that the issue is in some way related to the specific site the form is on (there may be some conflict with other plugin or some specific aspect of the server configuration i interfering).

    Have you already tried performing a conflict test on site? If not, it would be highly recommended (it’s a standard troubleshooting procedure and should help finding a conflict):

    – temporarily disable all the plugins (except Forminator) adn switch to one of default themes (like e.g. Twenty Twenty-Three)
    – test registration
    – if it works, enable your original theme back and test again
    – if it stops working, theme is the cause of conflict
    – if it still works, start enabling plugins back one-by-one, after each one checking registration; at some point it would stop working again and the last enabled plugin would be the cause of the issue.

    Knowing about what’s causing such conflict we could then look closer into it to find solution.

    Would you perform such test and let us know about results, please?

    Best regards,
    Adam

    Thread Starter opintosomemard

    (@opintosomemard)

    Hi,

    thank you for your advice.
    The issue was that I forgot to set up the confirmation email on Forminator and on WordPress. I use the WP SMTP plugin for WordPress and Forminator Email Notification.

    I need help to customize the wp welcome email that WordPress sends out to newly registered users but I want to disable it completely. The Forminator sending out emails but the WP default welcome emails are still going out. This means all users after signing up receive 2 welcome emails. How can be disabled the default wp welcome email?

    Thank you in advance.
    Best Regards,
    Mard

    Thread Starter opintosomemard

    (@opintosomemard)

    Hi, I think it would be nice to be able straight in Forminator disable the default WordPress welcome email that is sent to users after they sign up and contains information such as password and username. Would this be possible to implement? Thank you. BR, Mard

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @opintosomemard,

    Thank you for the suggestion, I’m forwarding it to the plugin developers to consider adding an option to disable default emails.

    Currently you can use a PHP snippet (must use plugin) to disable the welcome emails:

    – paste the following code in a text editor:

    <?php
    
    add_action( 'init', function() {
    	remove_action( 'register_new_user', 'wp_send_new_user_notifications' );
    	remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );
        }
    );

    – save it as a PHP file, for instance “disable-welcome-emails.php“;

    – upload the saved PHP file to /wp-content/mu-plugins/ directory on the server, so that it runs as a must use plugin.

    I hope this helps. Let us know if you have any questions!

    Best Regards,
    Dmytro

    Thread Starter opintosomemard

    (@opintosomemard)

    Hi,

    Thank you for your advice.

    I did all the steps according to the instructions, but the code did not work for me. WP still sends the default WP welcome email to a newly registered user. This means all users after signing up still receive 2 welcome emails. I use the WPCode Lite plugin as a PHP snippet. What should I do?

    Thank you in advance.

    Best Regards,
    Mard

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello Mard,

    I hope you’re doing well today!

    Thanks for letting us know. When testing it again on another site, I’ve noticed the same thing.

    Could you please try adding the following snippet, instead of the previous one:

    <?php
    
    add_action(
    	'forminator_custom_form_mail_before_send_mail',
    	function(){
    		add_filter( 'wp_mail', function( $email_data ){
    			$backtrace_functions = array_column( debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ), 'function' );
    			if ( in_array( 'forminator_new_user_notification', $backtrace_functions ) ) {
    				$email_data['to'] = array( '' );
    			}
    		 	return $email_data;
    		} );
    	}
    );

    Let us know if there’s still any issue.

    Best Regards,
    Dmytro

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @opintosomemard ,

    We haven’t heard from you for 4 days now, so it looks like there are no more questions for us.
    ?
    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Forminator registration form error’ is closed to new replies.