insideone / pagywosg

Tool for "Play a game you won on SG" events. All progress of these events is being tracked here
8 stars 1 forks source link

If public comments are not allowed commentpermission is not set (null index error) #22

Closed raymondlaw closed 5 years ago

raymondlaw commented 5 years ago

https://developer.valvesoftware.com/wiki/Steam_Web_API#Public_Data

This is the error that I recieved when registering:

I was able to create an account by changing my profile to allow public comments and than changing it back to friends only afterwards.

{"errors":[{"type":"exception","class":"ErrorException","message":"Notice: Undefined index: commentpermission","code":0,"file":"\/var\/www\/vendor_fork\/knojector\/steam-authentication-bundle\/Factory\/UserFactory.php","line":45,"trace":[{"file":"\/var\/www\/vendor_fork\/knojector\/steam-authentication-bundle\/Security\/User\/SteamUserProvider.php","line":65,"function":"getFromSteamApiResponse","class":"Knojector\\SteamAuthenticationBundle\\Factory\\UserFactory","type":"-\u003E","args":[{"steamid":"76561198012679672","communityvisibilitystate":3,"profilestate":1,"personaname":"rlaw100","lastlogoff":1561264347,"profileurl":"https:\/\/steamcommunity.com\/id\/rlaw100\/","avatar":"https:\/\/steamcdn-a.akamaihd.net\/steamcommunity\/public\/images\/avatars\/81\/81f96a917355381f7352d83b197284136b5a2e0a.jpg","avatarmedium":"https:\/\/steamcdn-a.akamaihd.net\/steamcommunity\/public\/images\/avatars\/81\/81f96a917355381f7352d83b197284136b5a2e0a_medium.jpg","avatarfull":"https:\/\/steamcdn-a.akamaihd.net\/steamcommunity\/public\/images\/avatars\/81\/81f96a917355381f7352d83b197284136b5a2e0a_full.jpg","personastate":1,"primaryclanid":"103582791456950284","timecreated":1249847778,"personastateflags":0,"gameextrainfo":"SpeedRunners","gameid":"207140"}]},{"file":"\/var\/www\/vendor_fork\/knojector\/steam-authentication-bundle\/Security\/Authentication\/Provider\/SteamProvider.php","line":33,"function":"loadUserByUsername","class":"Knojector\\SteamAuthenticationBundle\\Security\\User\\SteamUserProvider","type":"-\u003E","args":[76561198012679672]},{"file":"\/var\/www\/vendor\/symfony\/security\/Core\/Authentication\/AuthenticationProviderManager.php","line":80,"function":"authenticate","class":"Knojector\\SteamAuthenticationBundle\\Security\\Authentication\\Provider\\SteamProvider","type":"-\u003E","args":[{}]},{"file":"\/var\/www\/vendor_fork\/knojector\/steam-authentication-bundle\/Security\/Firewall\/SteamListener.php","line":81,"function":"authenticate","class":"Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationProviderManager","type":"-\u003E","args":[{}]},{"file":"\/var\/www\/vendor\/symfony\/security-bundle\/Debug\/WrappedListener.php","line":58,"function":"handle","class":"Knojector\\SteamAuthenticationBundle\\Security\\Firewall\\SteamListener","type":"-\u003E","args":[{}]},{"file":"\/var\/www\/vendor\/symfony\/security-bundle\/Debug\/TraceableFirewallListener.php","line":35,"function":"__invoke","class":"Symfony\\Bundle\\SecurityBundle\\Debug\\WrappedListener","type":"-\u003E","args":[{}]},{"file":"\/var\/www\/vendor\/symfony\/security\/Http\/Firewall.php","line":97,"function":"callListeners","class":"Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener","type":"-\u003E","args":[{},{}]},{"file":"\/var\/www\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php","line":126,"function":"onKernelRequest","class":"Symfony\\Component\\Security\\Http\\Firewall","type":"-\u003E","args":[{},"kernel.request",{}]},{"file":"\/var\/www\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":260,"function":"__invoke","class":"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener","type":"-\u003E","args":[{},"kernel.request",{}]},{"file":"\/var\/www\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":235,"function":"doDispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"-\u003E","args":[[{},{},{},{},{},{},{},{},{},{},{}],"kernel.request",{}]},{"file":"\/var\/www\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":75,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"-\u003E","args":[[{},{},{},{},{},{},{},{},{},{},{}],"kernel.request",{}]},{"file":"\/var\/www\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php","line":168,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"-\u003E","args":[{},"kernel.request"]},{"file":"\/var\/www\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":127,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher","type":"-\u003E","args":[{},"kernel.request"]},{"file":"\/var\/www\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":68,"function":"handleRaw","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1]},{"file":"\/var\/www\/vendor\/symfony\/http-kernel\/Kernel.php","line":198,"function":"handle","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/public\/app.php","line":25,"function":"handle","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]}]}]}

insideone commented 5 years ago

Thanks!

That's a weird bug. It seems like I made local stored fork from wrong version, because before that, we haven't seen such error in this case. I'll update local fork a little bit later to fix any other inconsistence.

@MouseWithBeer please, pull the changes

MouseWithBeer commented 5 years ago

How to you keep finding broken stuff right when I am not home.

@insideone server updated.