Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logged out when I try to add bot list #82

Open
Coast47 opened this issue Sep 10, 2021 · 8 comments
Open

Logged out when I try to add bot list #82

Coast47 opened this issue Sep 10, 2021 · 8 comments

Comments

@Coast47
Copy link

Coast47 commented Sep 10, 2021

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

@Thomas--F
Copy link
Owner

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

@Thomas--F
Copy link
Owner

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.

@Coast47
Copy link
Author

Coast47 commented Sep 14, 2021

Indeed, I'm connected with a SuperUser profile

Thanks

@Enkimin
Copy link

Enkimin commented Oct 26, 2021

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. )

@si458
Copy link

si458 commented Jan 12, 2022

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

@Thomas--F
Copy link
Owner

Thomas--F commented Jan 12, 2022

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?

@si458
Copy link

si458 commented Jan 12, 2022

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!

@Thomas--F
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants