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

invalidateArchivedReports $dates issue #5281

Closed
harwoodspike opened this issue Jun 2, 2014 · 2 comments
Closed

invalidateArchivedReports $dates issue #5281

harwoodspike opened this issue Jun 2, 2014 · 2 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@harwoodspike
Copy link

When I run the VisitorGenerator plugin from commandline using

I get the following error:


Fatal error: Call to a member function subDay() on a non-object in /path/to/piwik/plugins/SitesManager/API.php on line 1198

I did some back tracking and found the cause to be the dates variable passed into invalidateArchivedReports has a line-break at the end so it puts the date into invalidDates instead of toInvalidate.

I believe that:


$dates = explode(',', $dates);

should be:


$dates = explode(',', trim($dates));

@harwoodspike
Copy link
Author

Sorry, this issue was due to debugging statements I had previously placed in the code.

I would closed the ticket but it doesn't give me the option.

Although it would be a good idea to trim, just in case.

@mattab
Copy link
Member

mattab commented Jun 2, 2014

In aebddae: Fixes #5281 Trim parameter before exploding

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