Open tsteur opened 1 year ago
Getting the same error with visitEndServerDate!=0;visitEndServerDate!=1;visitEndServerDate!=2;visitEndServerDate!=3;visitEndServerDate!=4;visitEndServerDate!=5;visitEndServerDate!=6;visitEndServerDate!=7;visitEndServerDate!=8;visitEndServerDate!=9
piwik.ERROR: Uncaught exception in API: PDOException: SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: '0' in libs/Zend/Db/Statement/Pdo.php:233 Stack trace: #0 /var/www/html/libs/Zend/Db/Statement/Pdo.php(233):
Maybe visitServerHour>9
was meant and checking for invalid values on segment creation would help to avoid these errors.
Yes. Guess it would make sense to check the provided values for validity at least before using them in a query
What happened?
Customer created a segment
visitEndServerDate>3
. The segmentvisitEndServerDate
is the dimension "Time in UTC — date (time of last action)" in the segment selector.The error we get is
What should happen?
No error when this report is being archived or looked at in the UI.
How can this be reproduced?
Possibly the segment needs to be created through the API as I believe through the UI it cannot be configured like this.
The error may show up when selecting the segment in the UI. In any case the error happens when triggering the archiving.
Matomo major version
Matomo 4
Matomo minor or patch Version
15
PHP version
.
Server operating system
.
What browsers are you seeing the problem on?
No response
Computer operating system
.
Relevant log output
No response
Validations