'All other users' not saving | Peter's Login Redirect | Forum
Back to the login redirect plugin page
4:45 pm
Hi,
I want to redirect all logged in users to the front page of our internal site. I am using 'all other users' for this, but it is not saving the URL (the box just goes blank after hitting the update button). Bizarrely, it works just fine on a test install with the same plugins and theme.
What can I do to check for write permissions or anything like that? Note, all other plugins seem to be working fine.
Thanks.
8:19 pm
I ran your create statement and got the following error:
CREATE TABLE wp_login_redirects (
`rul_type` enum('user','role','level','all','register') NOT NULL,
`rul_value` varchar(255) NULL default NULL,
`rul_url` LONGTEXT NULL default NULL,
`rul_url_logout` LONGTEXT NULL default NULL,
`rul_order` int(2) NOT NULL default '0',
UNIQUE KEY `rul_type` (`rul_type`,`rul_value`)
)
MySQL said: Documentation
#1071 - Specified key was too long; max key length is 767 bytes
Looks like this is due to the UTF16 character set.
http://wildlyinaccurate.com/my.....-767-bytes
You could try reducing the number of characters stored in the "rul_value" field from 255 down to whatever will meet the size requirements, but that means your redirect URLs will be limited to that number of characters.