Arrow

'All other users' not saving | 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
'All other users' not saving
June 19, 2014
4:45 pm
tofsmatt
Member
Forum Posts: 4
Offline

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. sf-cry

What can I do to check for write permissions or anything like that? Note, all other plugins seem to be working fine.

Thanks.

June 19, 2014
5:14 pm
tofsmatt
Member
Forum Posts: 4
Offline

One difference is that the new database is encoded as utf16. Would this matter?

June 19, 2014
8:03 pm
tofsmatt
Member
Forum Posts: 4
Offline

I have confirmed the on the new site where it's not working, the wp_login_redirects table is NOT being created.

June 19, 2014
8:19 pm
tofsmatt
Member
Forum Posts: 4
Offline

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

June 30, 2014
3:23 pm
Peter
Admin
Forum Posts: 841
Offline

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.