Skip to content
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

FatalError - subDay() in API.php #5388

Closed
anonymous-matomo-user opened this issue Jun 26, 2014 · 1 comment
Closed

FatalError - subDay() in API.php #5388

anonymous-matomo-user opened this issue Jun 26, 2014 · 1 comment
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@anonymous-matomo-user
Copy link

If I call this URL (see the dates parameter) with a valid token I get an error message. It looks like the format of the input parameters are not checked.

http://piwik.piwik/?module=API&method=CoreAdminHome.invalidateArchivedReports&idSites=1&dates=1,1&token_auth=XYZ
A fatal error occurred

The following error just broke Piwik (v2.3.0):

Call to a member function subDay() on a non-object

in

/var/www/virtual/usage/html/plugins/SitesManager/API.php line 1198

If this error continues to happen you may want to send an error report to your system administrator.
@mattab
Copy link
Member

mattab commented Jul 1, 2014

In 022a4ac: Fixes #5388 throw exception if date is not valid

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants