wizguin/slippers

"[PluginManager] Error handling event: login {'msg': {'@t': 'sys', 'body': {'@action': 'login', '@r': '0', 'login': {'@z': 'w1', 'nick': None, 'pword': '0'}}}} Error: 'NoneType' object has no attribute 'lower'"

sunnydayoutside opened this issue · 12 comments

I have set up a server, but when I try connecting from other clients within my home network, The console says
"[PluginManager] Error handling event: login {'msg': {'@t': 'sys', 'body': {'@action': 'login', '@r': '0', 'login': {'@z': 'w1', 'nick': None, 'pword': '0'}}}} Error: 'NoneType' object has no attribute 'lower'"
I have tried modifying the config files and other stuff, Help would be appreciated.
Thanks!

How have you set this up? It looks like you can connect to the server but it isn't receiving a username and password. What does the response from login.php look like?

How have you set this up? It looks like you can connect to the server but it isn't receiving a username and password. What does the response from login.php look like?

I modified config, setup and login.php.
The response from the server is

`Warning: Packets out of order. Expected 0 received 1. Packet size=79 in C:\xamppnew\htdocs\php\login.php on line 13

Warning: mysqli::__construct(): MySQL server has gone away in C:\xamppnew\htdocs\php\login.php on line 13

Warning: mysqli::__construct(): Error while reading greeting packet. PID=105872 in C:\xamppnew\htdocs\php\login.php on line 13

Warning: mysqli::__construct(): (HY000/2006): MySQL server has gone away in C:\xamppnew\htdocs\php\login.php on line 13
&e=0`

I don't have a second computer to test this, but make sure you're connecting to the host computer's local address and not localhost in login.php, otherwise you won't be able to connect to the sql server. Run ipconfig in cmd and look for IPv4 Address. https://stackoverflow.com/a/14641123/

If you did that and it still doesn't work then you probably need to set permissions, this should help: https://stackoverflow.com/a/27170813/ Create a second user instead of using root if you're worried about security, but this should be fine for just localhost.

I'll check it out.

I don't have a second computer to test this, but make sure you're connecting to the host computer's local address and not localhost in login.php, otherwise you won't be able to connect to the sql server. Run ipconfig in cmd and look for IPv4 Address. https://stackoverflow.com/a/14641123/

If you did that and it still doesn't work then you probably need to set permissions, this should help: https://stackoverflow.com/a/27170813/ Create a second user instead of using root if you're worried about security, but this should be fine for just localhost.

I am still encountering issues, The response from login.php hasn't changed.
But, the console only prints this now: https://i.imgur.com/oAinc1V.png

Can you still connect to the game when using the host machine?

Can you still connect to the game when using the host machine?

I've tried, It seems no.

And login.php is sending the correct data?

And login.php is sending the correct data?

Not for the host or the other computer.
I'm sorry if I am being annoying or anything like that, I know I'm asking alot.

Can you show me what the response from login.php looks like now?

I've gotten everything to work, Thank you so much!
If I have any more issues, I'll be sure to report them!
Thanks again!

how?