mainIine / foe-helfer-extension

FoE Helfer - Extension for chromium based browsers and Firefox ;-)
https://foe-helper.com
GNU Affero General Public License v3.0
119 stars 181 forks source link

foe helper website wont let me register so I cant get a token #2829

Closed SunnyOneVa closed 3 weeks ago

SunnyOneVa commented 1 month ago

it just keeps saying my user ID is incorrect even tho I am copying and pasting directing from the extension on my game, which matches my game as well. I have triple checked to make sure all my info I am putting in is correct.

Help, please. New update requires a token for info about my city to be transmitted.

SunnyOneVa commented 1 month ago

bump

p1d3c commented 4 weeks ago

same trouble

tbasnoopy commented 4 weeks ago

same here

mainIine commented 4 weeks ago

Is there a brave player who can test the new registration / login?

Please try to create a new account.

Please report any errors here immediately so that I can fix them.

stekkedecat commented 4 weeks ago

I tried, it just keeps on loading

mainIine commented 4 weeks ago

I don’t know what you mean by that. Can you describe this in more detail?

JIJ01 commented 4 weeks ago

I’m having the same problem with the person above. When I go to make the account for FOE helper, I fill in all the required information but once I click register it get stuck in an endless loading cycle so it won’t allow me to make the account

mainIine commented 4 weeks ago

Oh, ok. I’ll take a look at that again. Please wait for my feedback.

tbasnoopy commented 3 weeks ago

If it helps:

https://foe-helper.com/register/_ajax?ajax=native&file=find-player&pID=BLABLA&pw=BLABLA&em=BLABLA&server=de Request Method: GET Status Code: 404 Not Found

stekkedecat commented 3 weeks ago

what i see if i look at that url is that there is no key-value pair for the world nr in there, is that intended?

tbasnoopy commented 3 weeks ago

sorry, my fault. I wrote "<>" around them so it wasn't shown correctly. Fixed now ^^

stekkedecat commented 3 weeks ago

@tbasnoopy I also miss the world nr field in my URL so it must be something in the code... https://foe-helper.com/register/_ajax? ajax=native &file=find-player &pID=... &pw=... &em=... &server=nl

and i would suspect, since it is a required field

&worldid=1

but that one is nowhere to be found

tbasnoopy commented 3 weeks ago

But (I think) the more relevant info is, that the site isn't present (Error 404)

stekkedecat commented 3 weeks ago

@tbasnoopy I'm not an ajax expert, but cant it be that the endpoint cannot be found because of the missing parameter?

mainIine commented 3 weeks ago

That was probably an old JS cache. I have refreshed it.

The file "find-player" doesnt exists any more.

p1d3c commented 3 weeks ago

That was probably an old JS cache. I have refreshed it.

The file "find-player" doesnt exists any more.

so we can try to register now?

mainIine commented 3 weeks ago

Yes pls.

p1d3c commented 3 weeks ago

request for

https://foe-helper.com/register/_ajax?ajax=native&file=register-player&w=ru&wNr=4&pID=myID&pw=myPassword&em=myEmail

returns 200 OK But after that i see infinity loading. So if request for register returns 200, I can login now? No. Login form shows me that password is wrong :/

UPD: I deleted the cache from the browser before sending the request

p1d3c commented 3 weeks ago

Hah, I just get a new password by "Forgot password?" function. And successfully logged in

p1d3c commented 3 weeks ago

Now when I'm trying to check my profile on foe-helper.com I get an error

Warning: Undefined array key "current_world" in /usr/www/users/foecre/foe-helper.com/core/modul/user/pages/profile.php on line 112

Warning: Undefined array key "all_worlds" in /usr/www/users/foecre/foe-helper.com/core/modul/user/pages/profile.php on line 114

Fatal error: Uncaught TypeError: array_column(): Argument #1 ($array) must be of type array, null given in /usr/www/users/foecre/foe-helper.com/core/modul/user/pages/profile.php:114 Stack trace: #0 /usr/www/users/foecre/foe-helper.com/core/modul/user/pages/profile.php(114): array_column() #1 /usr/www/users/foecre/foe-helper.com/core/modul/user/user.php(34): include('/usr/www/users/...') #2 /usr/www/users/foecre/foe-helper.com/core/classes/class.layout.php(341): user->getTPL() #3 /usr/www/users/foecre/foe-helper.com/core/modul/user/user.php(28): layout->__construct() #4 /usr/www/users/foecre/foe-helper.com/index.php(50): user->__construct() #5 {main} thrown in /usr/www/users/foecre/foe-helper.com/core/modul/user/pages/profile.php on line 114
p1d3c commented 3 weeks ago

Looks like my data in database is undefined or null. And register middleware didnt saved it.

mainIine commented 3 weeks ago

Can I get your player id and world id? So I can check the database.

p1d3c commented 3 weeks ago

ID: 852547561 world: ru4

tbasnoopy commented 3 weeks ago

ID: 852814468 world: de11

mainIine commented 3 weeks ago

Pls let's discuss here: https://github.com/mainIine/foe-helfer-extension/discussions/2836