WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Login
Why i get empty_both (5 posts)

  1. twiceb
    Member
    Posted 2 years ago #

    That i get when i am trying the registration, with login no problems.
    Info
    I am working with multisite, register from main site, have actually only one site, the main one
    No other plugin runs
    Fixed as suggested in some other note, i.e.
    redirect = data.children('#simplemodal-login-redirect'); in the java file

    Any other idea???
    Boaz

  2. Gdub01
    Member
    Posted 2 years ago #

    I'm stuck on this exact same issue. I have multisite as well with the simple modal used only on the main page. Were you able to resolve this?

  3. jlnd
    Member
    Posted 2 years ago #

    I think this plugin has some issues. It hasn't been updated in more than a year. Here's another report of this same bug from more than a year ago:

    http://wordpress.org/support/topic/plugin-simplemodal-login-empty_both-message?replies=13

    Most of the functionality works for me, but registering a new user does not. I get the "empty_both" error message. Looking at the code, it looks to me like "empty_both" in js/default.js should be "empty_all" but even that is only correcting the error message. The cause of the error message appears to me to be that the registration form fields are wrong. If you go to WordPress's registration page, the Username field is "user_name", but in the simplemodal login registration box is "user_login".

  4. RedFox0
    Member
    Posted 2 years ago #

    I noticed the plugin is registering user, despite giving the error. So I changed the js to check if it was on the registration form and assume all was ok.

    Find and change the 'empty_both' part of default.js to:

    else if (loginform.length) {
    	if(s.form==='#registerform')
    	{
    		$('p:first', form[0]).before(
    			$(document.createElement('div'))
    				.html('<strong>Thank you!</strong><br/>Please check your email for registration details')
    				.attr('id', 'login_message')
    		);
    		activity.hide(); fields.show();
    	}
    	else
    	{
    		s.showError(form, ['empty_both']);
    		activity.hide(); fields.show();
    	}
    }

    And add the following to default.css:

    #simplemodal-login-container #login_message {
    	background-color: #FFFFCC;
    	border:1px solid #FF9900;
    	margin-bottom:8px;
    	padding:6px;
    	-moz-border-radius:3px;
    	-webkit-border-radius:3px;
    	border-radius:3px;
    }

    Just remember it will only fix things if the registration is actually working even though it gives the 'empty_both' error (check your user lists).

  5. Eric Martin
    Member
    Plugin Author

    Posted 2 years ago #

    I will try to see if I can recreate the issue. If someone having the issue could send me (eric at ericmmartin.com) a link to their site, I can take a closer look.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic