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

email report generation fails without message when required plugin is inactive #8219

Closed
Fensterbank opened this issue Jun 25, 2015 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@Fensterbank
Copy link
Contributor

While testing some random scheduled email reports I realized the activation of the statistic Visitor Configuration seems to provoke an error.
The download or sending of the report is not possible.

In the auto archiver cronjob error log, I got following output while the scheduler never finished:

PHP Fatal error: Call to undefined function Piwik\Plugins\DevicesDetection\getOsFullName() in /var/www/piwik/plugins/Resolution/functions.php on line 21

I tested the option in different reports on different sites. It was reproducable.
All reports worked fine without the statistic Visitor Configuration, after including it, they didn't work anymore.

This option seems to crash the report function.
I tested it in Piwik 2.13.1

Can someone confirm this issue?

@mattab
Copy link
Member

mattab commented Jun 25, 2015

Hi @Fensterbank

I can't reproduce this error on the demo running the latest beta. Can you try reproduce on latest beta?

@Fensterbank
Copy link
Contributor Author

Hi @mattab

I realized that the plugin DevicesDetection was not activated.
I tried to activate, but the database upgrade failed, because of missing columns. (wtf?!)

devicesdetection2

I just created the columns manually and was able to activate the plugin.
Now the reports are working!

Finally you should be able to reproduce this issue following these steps:

  1. Deactivate the plugin DevicesDetecion
  2. Create a email report with the included statistic Visitor Configuration
  3. Download the email report

This type of error can be very disturbing.
A suggestion would be to prevent the selection of specific statistics if the required plugins are inactive.

@Fensterbank Fensterbank changed the title ScheduledReports: Statistic "Visitor Configuration" does not work email report generation fails without message when required plugin is inactive Jun 30, 2015
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Jul 9, 2015
@mattab
Copy link
Member

mattab commented Jul 15, 2015

Hi @Fensterbank

I cannot reproduce this issue in 2.14.0 - can you please reopen if you can still reproduce the bug? The Visitor configuration report loads even when DevicesDetection plugin is disabled.

@mattab mattab closed this as completed Jul 15, 2015
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Jul 15, 2015
@mattab mattab modified the milestone: Short term Sep 23, 2015
@unhammer
Copy link

I was able to add "visitor configuration" without having the devices plugin activated, giving this error message. I think my devices plugin was active at some point earlier. Simply activating the plugin solved it for me.

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

3 participants