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
$userPreferences->getDefaultReport() gives Empty String when not set. #7839
Comments
You should not change Can you execute the following SQL query and post the result here? select * from piwik_option where option_name like 'YOURUSERNAME_defaultReport';
--or following helps you seeing if there is an entry for your username
select * from piwik_option where option_name like '%defaultReport%'; Can you go to your user settings, select the default report to load again and press "Save". Does it change anything? Is it otherwise possible, that the user you are testing, does not have access to any site? Or did not have access to a site for a few hours after creating the user? |
Please reopen if you can still experience this issue after 2.13.1. Would be nice if you could still answer above questions. Maybe before updating to 2.13.1? |
Hi I was not checking sorry for the delay, the result of the your query: |
So after the update the bug is solved thanks for the help :D |
Thx for letting us know! |
A User with view Access, can not visit her/his settings (citing no IdSite was set). After testing I found out that in
UsersManager->UserSettings()
the$userPreferences->getDefaultReport()
gives""
, an empty string. Going toUserPrefrence
class, you see this:So having empty string leads to sending empty string to view controller, I changed the
!is:numeric
tois_numeric
and everything works.So is there any other solution than here working or should a default-report be set for a newly created user?
The text was updated successfully, but these errors were encountered: