Removing Users | Peter's Login Redirect | Forum
Back to the login redirect plugin page
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;
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.)
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].
3:11 pm
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
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.