• Resolved Fred17

    (@f14m07)


    Hi Franky,
    I have created a filter to change the case of the first and last name entered in a membership form. I must have made a mistake because I get the message :
    ‘Form tampering detected. If you believe you’ve received this message in error please contact the site owner.’
    The filter works fine on my local site and the error is only caused on the production site.
    This is the filter:

    add_filter('eme_insert_person_filter','eme_my_insert_person_function');
    function eme_my_insert_person_function($person){
       	$first_name=$person['firstname'];
    	$first_name=strtolower($first_name);
    	$first_name=ucfirst($first_name);
    	$person['firstname']=$first_name;
    	$last_name=$person['lastname'];
    	$last_name=strtolower($last_name);
    	$last_name=ucfirst($last_name);
    	$person['lastname']=$last_name;
       return $person;
    }

    The properties of this membership is to create WP user if not exist.

    Can you tell me where my mistake is ?

    Frédéric

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Franky

    (@liedekef)

    The error message and your filter are not related. This error message pops up if a frontend nonce doesn’t correspond with the expected value. Typically caused by caching plugins that try to cache the whole page and thus prevent a correct nonce to be rendered in the form (as a hidden value). Try disabling the cache plugin.

    Thread Starter Fred17

    (@f14m07)

    I removed the page from the cache and everything works. Thanks a lot for your quick and efficient support, as always!

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

The topic ‘Error after the validation of a form’ is closed to new replies.