I have recently started experiencing duplicate form entries on a simple formidable form. I've taken the advice here https://formidableforms.com/knowledgebase/why-am-i-receiving-duplicate-entries/ and have discovered that it only happens when the plugin I have made myself is active. So need to get to the root cause of why. In my plugin this is the code:
// add_action('frm_after_create_entry', 'tw_form_submitted', 30, 2); function tw_form_submitted($entry_id, $form_id ){ switch ($form_id){ case tw_get_signup_form_id(): tw_add_meta_to_user( $entry_id, $form_id ); tw_add_user_game_list($entry_id); tw_mp_send_welcome_email($entry_id); break; }
In the example, the function tw_form_submitted is getting called twice.
I didn't notice exactly when this started occurring but I haven't changed any of this code which was previously working. In that time there have been some plugin updates. I tested on staging and the issues occurring. I followed the instructions on how to check for a database issue and tested it the issue still occurs.
So the next step is to add in one of the filters to check for duplicate entires but obviously would prefer to know why its happening.
Also in the filter its unclear what the time limit should be. Is this a value in milliseconds?
Please login or Register to submit your answer