@paladox opened this Issue on May 1st 2019 Contributor

Hi, could a option be added that allows you to continue even if you get a error like:

[Piwik\Exception\UnexpectedWebsiteFoundException]
An unexpected website was found in the request: website id was set to '2897' .

please?

This would be super useful.

Or is there a way to clear the deleted websites so they are not run?

@tsteur commented on May 1st 2019 Member

We would not add an option but we could in general implement this as standard behaviour. I'm seeing for some things this is already implemented in the archiver, eg when archiving days, but not in some other places.

@paladox commented on May 1st 2019 Contributor

@tsteur would you know how I would be able to fix this? Is there another command i should run to fix this please? :)

@tsteur commented on May 1st 2019 Member

@paladox I suppose this file here https://github.com/matomo-org/matomo/blob/3.10.0-b1/core/CronArchive.php would need to be patched in some places to catch UnexpectedWebsiteFoundException similar to here: https://github.com/matomo-org/matomo/blob/3.10.0-b1/core/CronArchive.php

There isn't any workaround I'm aware of.

@paladox commented on May 1st 2019 Contributor
@tsteur commented on May 1st 2019 Member

Sorry, looks like I need some coffee haha :) here is the correct link: https://github.com/matomo-org/matomo/blob/3.10.0-b1/core/CronArchive.php#L696-L699

@paladox commented on May 1st 2019 Contributor

@tsteur thanks for the pointer! Fixed in https://github.com/matomo-org/matomo/pull/14397 !

This Issue was closed on May 2nd 2019
Powered by GitHub Issue Mirror