Page 6 of 7

Re: ULogin Pro

Posted: Sun Aug 01, 2021 12:29 am
by websbk
try to downgrade the php version to 7.1 Everything works fine for me

Re: ULogin Pro

Posted: Sun Aug 01, 2021 12:34 am
by Lovatto
Ok... not likely a permissions issue - tested on both Ubuntu 20.04 LAMP stack 7.4 and Win 2019 MySQL PHP 7.4

Both have no issues creating the clan databases, using the full functions of the shop and login, but the google and Facebook sessions db's aren't getting created

Image
The thing is that these don't use Mysql databases like ULogin Pro do, these databases that Facebook and Google login uses are for temporary data only,
and they are using SQLite databases, so there's the possibility that your server doesn't have installed the extension for this.

from this image, check if there're some files under the 'databases' folder and let me know.

Re: ULogin Pro

Posted: Sun Aug 01, 2021 1:10 am
by KKHackLabs
OK, my mistake, I wasn't clear that it was separate.

I installed sqlite3, rolled back to 7.1 and .. still the same

databases folder is empty

Image

Re: ULogin Pro

Posted: Sun Aug 01, 2021 4:30 am
by Lovatto
If the SQLite databases can't be created then yes, the problem is with some server configuration, but instead of waste time figuring it out, you can simply use these pre-created empty databases that I attach below, uncompress, and upload these in the database folder that I mentioned before and you should be good.
SQLite-database.zip

Re: ULogin Pro

Posted: Sun Aug 01, 2021 9:03 am
by KKHackLabs
Lovatto wrote: Sun Aug 01, 2021 4:30 am If the SQLite databases can't be created then yes, the problem is with some server configuration, but instead of waste time figuring it out, you can simply use these pre-created empty databases that I attach below, uncompress, and upload these in the database folder that I mentioned before and you should be good.

SQLite-database.zip
YOU ROCK!!

I love this team, thank you!

Re: ULogin Pro

Posted: Fri Aug 13, 2021 12:51 am
by vitekcz5
Hi.
I tried update ULogin to the lastest version, v1.9.47. But, everytime I try to log in or create new account, there is an error.
Image

Code: Select all

HTTP/1.1 400 Bad Request
UnityEngine.Debug:LogError (object)
ULoginResult:PrintError () (at Assets/Addons/ULoginSystemPro/Content/Scripts/Internal/Structures/ULoginResult.cs:92)
bl_LoginPro/<LoginProcess>d__34:MoveNext () (at Assets/Addons/ULoginSystemPro/Content/Scripts/Runtime/Main/bl_LoginPro.cs:181)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
bl_Common is ok, files on the server are updated..
I don't know why it's not working, because before everything worked well. Even the old game build works fine with old PHP files.

Re: ULogin Pro

Posted: Sat Aug 14, 2021 7:24 pm
by Lovatto
Did you update everything (client scripts, PHP scripts, and database structure?
the Bad request error for that HTTP call can only happen if the 'name' variable wasn't sent in the POST login request.

Check this:

in bl_Login.cs -> IEnumerator LoginProcess(...) -> at the very top of the function add this log:

Code: Select all

 Debug.Log($"Login username '{user}'");
test again in the editor and check what you get in the console after try login.

Re: ULogin Pro

Posted: Mon Aug 16, 2021 4:19 am
by vitekcz5
Hi.
I've already fixed this issue, but now I am having another problem. I always get 401 error when trying to create account/ login.

Image

Code: Select all

Error:HTTP/1.1 401 Unauthorized
UnityEngine.Debug:Log (object)
bl_LoginPro/<RegisterProcess>d__43:MoveNext () (at Assets/Addons/ULoginSystemPro/Content/Scripts/Runtime/Main/bl_LoginPro.cs:506)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
I am using Awardspace as my web hosting and it worked great until I've updated to the new ULogin version. The old game build still works.

Re: ULogin Pro

Posted: Mon Aug 16, 2021 9:16 am
by Lovatto
vitekcz5 wrote: Mon Aug 16, 2021 4:19 am Hi.
I've already fixed this issue, but now I am having another problem. I always get 401 error when trying to create account/ login.
Make sure the 'SecretKey' is the same in both LoginDataBasePro -> SecretKey and bl_Common.php -> SECRET_KEY.
also, make sure you have the PeerToPeer sync (on or off) in both too, LoginDataBasePro -> PerToPerEncryption and bl_Common.php -> PER_TO_PER_ENCRYPTION

Re: ULogin Pro error

Posted: Tue Dec 28, 2021 6:55 am
by slthompson
Unity v 2020.3.25f1 - MFPS v 1.9 BETA - ULogin Pro v 1.9.47-rdvuxn

Hi,

Errors happen after ulogin pro > enable > integrate

Assets\MFPS\Scripts\Network\Lobby\bl_Lobby.cs(49,13): error CS0103: The name 'bl_ULoginUtility' does not exist in the current context

Assets\MFPS\Scripts\Network\Lobby\bl_Lobby.cs(479,38): error CS1061: 'bl_LoginProDataBase' does not contain a definition for 'SignOut' and no accessible extension method 'SignOut' accepting a first argument of type 'bl_LoginProDataBase' could be found (are you missing a using directive or an assembly reference?)

Assets\MFPS\Scripts\UI\Room\bl_GameFinish.cs(93,26): error CS1501: No overload for method 'SaveNewCoins' takes 2 arguments

Assets\MFPS\Scripts\Internal\Data\Scriptables\MFPSCoin.cs(29,34): error CS1501: No overload for method 'SaveNewCoins' takes 2 arguments

Assets\MFPS\Scripts\Internal\Data\Scriptables\MFPSCoin.cs(49,34): error CS1501: No overload for method 'SubtractCoins' takes 2 arguments

Assets\MFPS\Scripts\Internal\Data\Scriptables\MFPSCoin.cs(79,41): error CS1061: 'int' does not contain a definition for 'Length' and no accessible extension method 'Length' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)

Assets\MFPS\Scripts\Internal\Data\Scriptables\MFPSCoin.cs(84,20): error CS0021: Cannot apply indexing with [] to an expression of type 'int'


Thanks-Sean