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
Uncaught exception in API: Piwik\Exception\UnexpectedWebsiteFoundException: An unexpected website was found in the request: website id was set to '-1' . in core/Site.php #17759
Comments
@tsteur do we maybe have the query string that caused the error? |
It was during archiving |
|
I tried to reproduce that, but wasn't able to. It is actually triggered in a task of Account2 plugin, which calls $multiSites = Request::processRequest('MultiSites.getAll', array(
'period' => 'range',
'date' => $from . ',' . $to,
'showColumns' => 'nb_actions,nb_pageviews'
)); Haven't yet figured out why there might occur a record holding |
@sgiehl if you add EDIT: I'm guessing it happens if there's more than 100 sites. |
If it's not easily reproducible we can also modify the milestone and remove "regression" label for now and wait until it happens again (if it does). |
@diosmosis I wasn't able to reproduce that locally. Even when creating more than 100 sites, the MultiSites API still returns a valid result. |
@sgiehl only other thing I can think of is filter_truncate which would add a summary row. |
it seems to be |
when calling MultiSites.getAll
Seems there is maybe an other row and https://github.com/matomo-org/matomo/blob/4.4.0-b1/plugins/MultiSites/API.php#L275 is applied maybe to the others row. Thinking this could be a regression from recent -1 changes.
Interestingly that instance has only 38 sites though so not sure it is caused by an others row but sounds like it. Maybe indirectly a lower limit was applied or so not sure.
The text was updated successfully, but these errors were encountered: