• Resolved Doug M

    (@nes-native-english-services)


    I have the basic GeoDirectory plugin installed and this error gets thrown twice when someone tries to register with an already registered email address.

    Warning: Missing argument 2 for wordfence::registrationFilter() in /home/billiar1/public_html/unglove.me/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 1169
    
    Warning: Missing argument 3 for wordfence::registrationFilter() in /home/billiar1/public_html/unglove.me/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 1169

    I get this error when I tried to register with a new email address

    Warning: Missing argument 2 for wordfence::registrationFilter() in /home/billiar1/public_html/unglove.me/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 1169
    
    Warning: Missing argument 3 for wordfence::registrationFilter() in /home/billiar1/public_html/unglove.me/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 1169
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/billiar1/public_html/unglove.me/wp-content/plugins/wordfence/lib/wordfenceClass.php:1169) in /home/billiar1/public_html/unglove.me/wp-includes/pluggable.php on line 898
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/billiar1/public_html/unglove.me/wp-content/plugins/wordfence/lib/wordfenceClass.php:1169) in /home/billiar1/public_html/unglove.me/wp-includes/pluggable.php on line 1167

    Posting on GeoDirectory support also.

    https://www.ads-software.com/plugins/geodirectory/

    https://www.ads-software.com/plugins/wordfence/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    I couldn’t reproduce this issue at my end, after installing “GeoDirectory plugin” and with WP_DEBUG mode enabled I didn’t get these warnings while registering a new user with an already existing email address or even a new one.

    Could you please try the following:
    – Make sure you have the latest WordPress version and all plugins installed are up to date too.

    – Try disabling all plugins installed (except Wordfence and GeoDirectory) and re-check this issue.

    Finally, please let me know the PHP version installed on your server, you can get this info from (Wordfence > Diagnostics > PHP version).

    Keep me updated,
    Thanks.

    by 15.07.2016, it is not fixed by WordFence.

    So,till that is fixed, you should do manual fix:
    uncheck “Prevent users registering ‘admin’ username if it doesn’t exist” from WordFence>Options

    and in Wordfence plugin folder>lib>wordfenceClass.php , on line 1169, change this:
    public static function registrationFilter($errors, $santizedLogin, $userEmail){

    to
    public static function registrationFilter($errors, $santizedLogin=false, $userEmail=false){

    Hi @tazo todua
    Actually, I don’t recommend editing wordfenceClass.php file in Wordfence as you advised, because these warnings aren’t because of Wordfence, instead it’s mainly caused by improper usage of “registration_errors” filter by GeoDirectory guys, this filter can take up to 3 arguments as mentioned in WordPress source code here and that’s how we are using it, but I can see it has been used with one argument only in GeoDirectory plugin, so this will result in these warnings and you can expect the same warnings with any other plugin using more than one argument not only with Wordfence, that’s why I recommend reporting this issue to GeoDirectory guys.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on registration’ is closed to new replies.