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

Visitor Generator not working from console #5256

Closed
harwoodspike opened this issue May 28, 2014 · 1 comment
Closed

Visitor Generator not working from console #5256

harwoodspike opened this issue May 28, 2014 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@harwoodspike
Copy link

I am running Piwik 2.3.0 w/ the latest VisitorGenerator plugin install on my CentOS/cPanel server running PHP 5.4.

When I run:

# /usr/local/bin/php /piwik/path/console visitorgenerator:generate-visits --idsite=5 --days=30 --no-logs

the process completes successfully but when I go into Piwik UI, all the visits that were imported have been put onto today instead of spread through the last 30 days.

I have edited the code adding:

echo "USER: " . $user['token_auth'] . "\n";

after the:

$user = $this->getCurrentUser();

on line 29 of VisitsFake.php and it returned

USER: 

So I am assuming that the command-line console system is trying to look-up the user with no success due to you can't login to the console.

@mattab
Copy link
Member

mattab commented Jun 2, 2014

Thanks for report. This was fixed in VisitorGenerator 1.2.2 matomo-org/plugin-VisitorGenerator@9f2ce57

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