Arrow

Removing Users | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Removing Users
May 19, 2014
8:17 pm
tsauer
Member
Forum Posts: 7
Offline

Is there a limit to the number of users? All of a sudden I can't redirect users. I select the user and add the redirect link and hit update like I've done for a long time now the name stay in the list. Is there a way to remove users? Thanks for your help.

May 20, 2014
8:52 pm
Peter
Admin
Forum Posts: 841
Offline

Hi,

No, there is no limit enforced by the plugin. To remove a user you should just have to uncheck the row and click "Update". Is any other functionality working on that page? Perhaps you've hit some space limitation in the database itself.

May 21, 2014
5:42 am
tsauer
Member
Forum Posts: 7
Offline

There is no other functionality on the page and there is plenty of space in the database. Everything had been working fine for years up until this week and there were no changes. I tried to unclick a user and hit refresh it reclicks the box and the user is remains in the list.

May 21, 2014
8:13 am
Peter
Admin
Forum Posts: 841
Offline

Sorry to harp on this point -- did you click the "Update" button (below the form to add a new redirect) after you unchecked a user? The UI is pretty bad -- in the future there should be dedicated "Delete" buttons per user.

May 21, 2014
12:58 pm
tsauer
Member
Forum Posts: 7
Offline

I did and I have had no problem adding new users in the past and have done it hundreds of times. I just ried again I hit update right above "Specific Roles" the first update button under where I would enter new users. When I went back to look to see if the user was deleted the box was rechecked.

May 21, 2014
1:36 pm
tsauer
Member
Forum Posts: 7
Offline

The main thing however is not the removal but why I can't add new users. Thanks!

May 25, 2014
9:40 pm
Peter
Admin
Forum Posts: 841
Offline

Hi,

* How many user rules do you have? I have been unable to reproduce the problem, but perhaps there is some related issue around volume.

* Are you on a shared hosting account, where some aspect of your hosting environment might have changed without you knowing about it?

* Also, can you try running a command like this directly against your database (replacing the "username_to_delete" with the relevant username) in order to manually delete a user rule? Be sure to back up the database beforehand to be extra careful.

DELETE FROM wp_login_redirects WHERE rul_type = 'user' AND rul_value = 'username_to_delete' LIMIT 1;

June 2, 2014
7:01 pm
tsauer
Member
Forum Posts: 7
Offline

Still not working. There are about 300 or so users. What if I delete your redirect plugin and reinstall? Will all users appear? I would have to reenter the redirect. I not comfortable with messing with the code.

June 7, 2014
1:35 pm
Peter
Admin
Forum Posts: 841
Offline

Hi,

If you uninstall the plugin, the redirects should still remain. However, if you delete it that should remove the "wp_login_redirects" table. To be safe you should back up your database first.

June 18, 2014
8:23 pm
tsauer
Member
Forum Posts: 7
Offline
10

So I uninstalled the login redirect plugin and started fresh adding users redirects. When I got to about 350 it stopped allowing me to add additional users. Could you email me about looking into it?

June 21, 2014
2:13 pm
Peter
Admin
Forum Posts: 841
Offline

I've run some tests with hundreds of users -- looks like there is in fact a limit at the PHP level. I need to change the way the plugin updates the entries by adding individual Edit and Delete buttons instead of having all username rules submit at once.

In the meantime you can increase the PHP variable max_input_vars beyond its default setting of 1,000 (which explains why, before 333 users, you run into this limit since there are 3 input fields for each username rule). Sorry for the trouble! (But also thanks for discovering the issue.)

July 6, 2014
7:00 pm
Peter
Admin
Forum Posts: 841
Offline

I've released version 2.8.0 of the plugin, which adds individual Edit and Delete buttons per rule and thus should no longer have that limit.

On a side note, if all of your redirects follow the same pattern involving the username, you might want to consider building a single redirect rule using the special syntax [variable]username[/variable].

August 2, 2014
3:11 pm
Tyler
New Member
Forum Posts: 1
Offline
13

Hi Peter,

Unfortunately, this change caused another "problem."

Previously, I could make changes to multiple redirect links and then press update just once. Now, I have to manually press the edit (or delete) button for each one, and it returns me to the top of the page each time. This is highly inefficient, especially since I have dozens of user redirects. Can you please add back in the capability to edit or delete multiple user redirects at the same time?

Thanks! Otherwise, it's a great plug-in!
Tyler

August 3, 2014
11:12 am
Peter
Admin
Forum Posts: 841
Offline
14

Sorry about that. Other than the issue about reaching limits around the number of form fields, I had also received feedback about how the previous interface was not intuitive for adding and removing rules. I am definitely open to design/layout suggestions and mockups. Also, something I always recommend if there are many rules to manage is to consider whether they can be consolidated into a single rule with a dynamic URL part.