Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-12-07 23:00:50 +0300
committerGitHub <noreply@github.com>2021-12-07 23:00:50 +0300
commit7dac6788cb1b08c738804e6051d2d44b1e5f2c76 (patch)
tree1aad4364d627ff8de00ae6d239a247a2b302c448
parent18c176b42e8062fe7d9571b5708bf1c36bbdb58e (diff)
Ignore segment errors in update script (#18455)
-rw-r--r--core/Updates/4.6.0-b4.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Updates/4.6.0-b4.php b/core/Updates/4.6.0-b4.php
index 72b2ce0c6a..3c517f997d 100644
--- a/core/Updates/4.6.0-b4.php
+++ b/core/Updates/4.6.0-b4.php
@@ -52,7 +52,11 @@ class Updates_4_6_0_b4 extends PiwikUpdates
$segmentStrings = Rules::getSegmentsToProcess([$idSite]);
foreach ($segmentStrings as $segmentString) {
- $segment = new Segment($segmentString, [$idSite]);
+ try {
+ $segment = new Segment($segmentString, [$idSite]);
+ } catch (\Exception $e) {
+ continue;
+ }
if ($segment->getOriginalString() === $segment->getString()) {
continue;
}