BotTracker icon indicating copy to clipboard operation
BotTracker copied to clipboard

Logged out when I try to add bot list

Open Coast47 opened this issue 4 years ago • 8 comments

When I try to add the bot list for a website, I'm redirected to the login page, with a message which tells me my session has expired for inactivity

If I go back, the bot list is still empty

Matomo server v 4.4.1 Bot tracker v2.0.3

Coast47 avatar Sep 10 '21 16:09 Coast47

Hmmm... looks like a similar problem like #70. I'll have a look.

Thomas--F avatar Sep 11 '21 15:09 Thomas--F

I'm a little bit further. The error occurs, when the controller checks, if the current user is the SuperUser: Piwik::checkUserHasSuperUserAccess Within this check, the "session expired" error occurs.

I don't want do delete the check, so I have to find out, why this function doesn't work anymore.

Thomas--F avatar Sep 12 '21 21:09 Thomas--F

Indeed, I'm connected with a SuperUser profile

Thanks

Coast47 avatar Sep 14 '21 09:09 Coast47

Just wanted to say I'm having the same issue. Logged in as super user. When ever I try and add Bot tracking. It logs me out and locks me out as well saying I've had to many log in attempts (Edit: getting locked out is due to my security settings sorry. )

Enkimin avatar Oct 26 '21 19:10 Enkimin

same issue here, did you have any progress at all? need any help debugging?

si458 avatar Jan 12 '22 14:01 si458

Thanks for waking me up. I was stuck at the SuperUserAccess-Check but the error was really located in the button-definition.

I think I fixed it with a small change in the config.twig.

Can you manually update your plugin (you have to change at least the file BotTracker/templates/config.twig ) and make a test?

Thomas--F avatar Jan 12 '22 22:01 Thomas--F

Thanks for waking me up. I was stuck at the SuperUserAccess-Check but the error was really located in the button-definition.

I think I fixed it with a small change in the config.twig.

Can you manually update your plugin (you have to change at least the file BotTracker/templates/config.twig ) and make a test?

Thanks that does indeed fix the issue however I now get amother strange issue? After adding all the default bots in and saving if I then select another website to add bots to then I get the following errors even through the bots are all listed?

Bot-Name 1is empty!
Bot-Name 2is empty!
Bot-Name 3is empty!
Bot-Name 4is empty!
Bot-Name 5is empty!
Bot-Name 6is empty!
Bot-Name 7is empty!
Bot-Name 8is empty!
Bot-Name 9is empty!
Bot-Name 10is empty!
Bot-Name 11is empty!
Bot-Name 12is empty!
Bot-Name 13is empty!
Bot-Name 14is empty!
Bot-Name 15is empty!
Bot-Name 16is empty!
Bot-Name 17is empty!
Bot-Name 18is empty!
Bot-Name 19is empty!
Bot-Name 20is empty!
Bot-Name 21is empty!
Bot-Name 22is empty!
Bot-Name 23is empty!
Bot-Name 24is empty!
Bot-Name 25is empty!
Bot-Name 26is empty!
Bot-Name 27is empty!
Bot-Name 28is empty!
Bot-Name 29is empty!
Bot-Name 30is empty!
Bot-Name 31is empty!
Bot-Name 32is empty!
Bot-Name 33is empty!
Bot-Name 34is empty!
Bot-Name 35is empty!

si458 avatar Jan 12 '22 23:01 si458

OK, the problem is here, the "action" doesn't change when you switch the siteID. When you select another website, the last action (e.g. "config_insert_db" für insert default bots or "deleteBotEntry") is repeated for the new site. "Delete" or "Save Config" is not a problem, but "Insert Default Bots" can be.

In the past, a change of the website changed also the action to "config_reload". I have found no documentation about the "piwik-siteselector", but it seems, this feature (changing action) is no longer availble. I've made a Development-Request. Let's wait and see if someone writes a reply.

Thomas--F avatar Jan 13 '22 09:01 Thomas--F