Skip to content

[Bug] The date is not a correct date range exception when running archive command #23135

@benr77

Description

@benr77

What happened?

Running matomo/console --matomo-domain=matomo.mydomain.net core:archive I get the following uncaught exception:

In Range.php line 275:
                                                                                                                  
  The date '2025-02-02' is not a correct date range. It should have the following format:  'lastN', 'previousN',  
   'YYYY-MM-DD,YYYY-MM-DD'. 

What should happen?

The exception should not be thrown.

How can this be reproduced?

Run the archive command.

Matomo version

5.3.0

PHP version

8.3.18

Server operating system

Ubuntu

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.triaged

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions