For this readon ppl are asking for a guide made by you because you use 100% these files.I can't help making it work if I dont know what you've done to cause the error.
Mine worked with little to no tinkering.
I use my account DB and not tested the backup of this db, i only restored the gamedb for the storage procedures i have pending to work properly, only this and the missing scripts.
ai know this error is for the loginserver is trying to load using the Storage procedure select server are in sql inside db account, if no return makes this error, and then for fix need to use these SP, if are using another loginserver can be another solution for other ppl, i dont know becaude files have some different copys of exe files and there is no info for ppl for what file need to use, what sql backup to restore to let working properly, the ppl are asking about your basic steps to put working.
If i take time i try to put a guide to fix the null error in loginserver, but check for my first solution that works because this is the first error comes time ago while try to fix these files and its easy.
(using official loginserver)