• Resolved Nik

    (@nikbond)


    Hi there

    I’ve just updated to the latest version of Membership 2 (ie. from 4.1.1 to 4.1.2) and it seems that error messages are no longer being shown on the registration page eg. if the user name is left blank, instead of showing “Please enter a username”, the sign up fails and a red/pink bar appears over the user name field but no actual error message is displayed.

    The same thing happens with any validation errors ie. pink bar appears, sign up fails but no error message is displayed.

    I’ve tested this by uninstalling Version 4.1.2 and re-installing 4.1.1 and everything works fine again. (I’m using the latest versions of WordPress and Buddypress and since all works OK with the previous version of Membership 2, I can only assume it’s something that’s been overlooked in the latest update?)

    My site isn’t currently online, but I would assume this should be fairly easy to replicate.

    With many thanks for any thoughts.

    Nik

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hey @nikbond,

    Hope you’re well.

    I tested this in my test environment and yes I can replicate the issue. So I just reported this to our developers, I am sure it will be fixed one of the next releases but until that time if we can find any hotfix I will share with you in this thread.

    Cheers,
    Oguz

    Thread Starter Nik

    (@nikbond)

    Hi Oguz

    Thank you for confirming this – it took me a while to realise that it was the plug-in causing the error and not my coding!

    I’ve downgraded to the previous version for now but would indeed be very grateful if you can let me know of any available fix for this.

    Warm regards
    Nik

    Thread Starter Nik

    (@nikbond)

    Hi Oguz… or anyone who can help.

    Is there any update to this yet? I can’t upgrade to version 4.1.2 until it’s fixed.

    I’ve even tried comparing the two versions (4.1.1 and 4.1.2) myself but there are a lot of changes and it’s hard to see where the problem could be occuring.

    Just to re-iterate, error messages are no longer being shown on the registration page eg. if the user name is left blank, instead of showing “Please enter a username”, the sign up fails and a red/pink bar appears over the user name field but no actual error message is displayed.

    You’ve identified this as an issue yourself. After 5 weeks, is there any chance of a hotfix (if not a full update)? It’s quite a major issue for most people I would think.

    With many thanks in advance and here’s hoping…

    Thread Starter Nik

    (@nikbond)

    Well… I think I’ve fixed this… and just in case you, or anyone else, is interested, this is what I did…

    Locate -membership/app/addon/buddypress/class-ms-addon-buddypress.php

    Replace lines 542 to 555 with –

    private function _create_action_error_cb() {
    		$bp = buddypress();
    		
    		if ( ! empty( $bp->signup->errors ) ) {
    			// There is error, so show errors using action hook 
    			foreach ( (array) $bp->signup->errors as $fieldname => $error_message ) {
    				add_action( 'bp_' . $fieldname . '_errors', create_function( '', 'echo apply_filters(\'bp_members_signup_error_message\', "<div class=\"error\">" . stripslashes( \'' . addslashes( $error_message ) . '\' ) . "</div>" );' ) );
    			}
    		}
    	}
            

    This is the function as it was in the previous version, which seems to work fine. Not sure why the updated two functions don’t work (it seems that one function has been split into two) – I’ll leave that to your developers to figure out. At least now I can upgrade and take advantage of the other features in 4.1.2 😉

    Hope this might be of some help to someone.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @nikbond,

    I’m really sorry for the huge waiting time here, somehow we missed this thread.
    I’ve already informed our developers about your fix though.

    Warm regards,
    Dimitris

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

The topic ‘Error messages/bug with latest update’ is closed to new replies.