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

Generating a new report fails #5955

Closed
mavroprovato opened this issue Aug 8, 2014 · 3 comments
Closed

Generating a new report fails #5955

mavroprovato opened this issue Aug 8, 2014 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@mavroprovato
Copy link

I am trying to follow the Getting Started Guide but I am stuck when I try to generate a new report. When I run

./console generate:report

I get the following error:

Enter the name of your plugin: MyPlugin
Enter the name of your report, for instance "Browser Families": Last Visits By Browser
PHP Fatal error:  Class 'Piwik\Plugins\DevicesDetection\Columns\Devicebrand' not found in /var/www/html/piwik/plugins/DevicesDetection/Reports/GetBrand.php on line 20
PHP Stack trace:
PHP   1. {main}() /var/www/html/piwik/console:0
PHP   2. Symfony\Component\Console\Application->run() /var/www/html/piwik/console:31
PHP   3. Piwik\Console->doRun() /var/www/html/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:124
PHP   4. Symfony\Component\Console\Application->doRun() /var/www/html/piwik/core/Console.php:63
PHP   5. Symfony\Component\Console\Application->doRunCommand() /var/www/html/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:193
PHP   6. Symfony\Component\Console\Command\Command->run() /var/www/html/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:887
PHP   7. Piwik\Plugins\CoreConsole\Commands\GenerateReport->execute() /var/www/html/piwik/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP   8. Piwik\Plugins\CoreConsole\Commands\GenerateReport->getCategory() /var/www/html/piwik/plugins/CoreConsole/Commands/GenerateReport.php:35
PHP   9. Piwik\Plugin\Report::getAllReports() /var/www/html/piwik/plugins/CoreConsole/Commands/GenerateReport.php:189
PHP  10. Piwik\Plugin\Report->__construct() /var/www/html/piwik/core/Plugin/Report.php:614
PHP  11. Piwik\Plugins\DevicesDetection\Reports\GetBrand->init() /var/www/html/piwik/core/Plugin/Report.php:199
@mattab mattab added this to the Piwik 2.5.0 milestone Aug 9, 2014
@mattab
Copy link
Member

mattab commented Aug 10, 2014

please try with Piwik 2.5.0-b2 (or the latest git master) as this is working fine for me. If you still have issues please comment here.

@mavroprovato
Copy link
Author

As I said, I'm following the Getting Started Guide (http://developer.piwik.org/guides/getting-started-part-1) so I'm already using the git master. The problem still stands. If you need more information, please ask.

@mattab
Copy link
Member

mattab commented Aug 11, 2014

Check that you have this file in your piwik: https://github.com/piwik/piwik/blob/master/plugins/DevicesDetection/Columns/DeviceBrand.php

if not, run git pull

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 20, 2014
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. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants