PDF reports

turbo have you updated the piwik.php file changing the debug value ? if yes, please PM with bug description your website URL and piwik URL and login and password thanks

I too can only send PDF Reports manually.
This is the output from piwik.php

array (
)

Loading plugins: { Provider,Goals}
-> Scheduled tasks not triggered.
Next run will be from: 2011-02-22 17:13:30 UTC
Empty request => Piwik page
Piwik is a free open source web analytics alternative to Google analytics.End of the page.

array (
‘piwik_ignore’ => ‘ignore=Iioi:_=6873bd14153ca1e5ce44349d3887e53eaf626960’,
‘PIWIK_SESSID’ => ‘m694jumvep7hnar63v5ectt7j0’,
)

Time elapsed: 0.076s

No reports so far.

I enabled debugging. Result.


Input parameters: <br/>array ( )
Loading plugins: { Provider,Goals }
Current datetime: 2011-02-22 16:29:39
-> Scheduled Tasks: Starting...

array (
)

Finished Scheduled Tasks.
Next run will be from: 2011-02-22 10:26:07 UTC
Time elapsed: 1.070s

Then I enabled ‘PIWIK_TRACKER_DEBUG_FORCE_SCHEDULED_TASKS’

Result:


Input parameters: <br/>array ( )
Loading plugins: { Provider,Goals }
Current datetime: 2011-02-22 16:33:06
-> Scheduled Tasks: Starting...

array (
  0 => 
  array (
    'task' => 'Piwik_CoreAdminHome.optimizeArchiveTable',
    'output' => 'Time elapsed: 0.097s',
  ),
  1 => 
  array (
    'task' => 'Piwik_PDFReports.dailySchedule',
    'output' => 'ERROR: User \'someusername\' doesn\'t exist.',
  ),
  2 => 
  array (
    'task' => 'Piwik_PDFReports.weeklySchedule',
    'output' => 'Time elapsed: 0.002s',
  ),
  3 => 
  array (
    'task' => 'Piwik_PDFReports.monthlySchedule',
    'output' => 'Time elapsed: 0.001s',
  ),
)

Finished Scheduled Tasks.
Next run will be from: 2011-02-22 17:29:39 UTC
Time elapsed: 0.162s

Does this ring any bell?
ERROR: User ‘someusername’ doesn’t exist.
someusername is the Admin-User.

So I created another user and set up a report for him and this seems to do the trick, when forcing tasks. I’ll see tomorrow if the report comes on its own.

@silenz

what do I have to do to get those reports you are showing ?
I would like to test more as well. I have enabled the debug mode in piwik.php but how to go from there ?

A few step by step explanation would be helpfull and very appreciated.

Besically, in piwik.php set


$GLOBALS['PIWIK_TRACKER_DEBUG'] = true;

To be sure that every time the tasks are started, set


$GLOBALS['PIWIK_TRACKER_DEBUG_FORCE_SCHEDULED_TASKS'] = true;

one line below.

Then just call the piwik.php directly in your (any) browser.
Like http://example.com/piwik/piwik.php
You don’t need firebug.

silenz, please make sure you are using 1.2-rc4 this looks like a bug already fixed?

@silenz

thank you for the good explanation.

Now I can debug and help better. (tu)

one more note:

using 1.2rc3 something strange , and at the same time correct/not correct, happend.

setup:
pdf reports from 1 site are set to be sent to 2 users, archiving done by browser.

testing machine running for 2 days > no reports
testing machine accidently shut down > restart > and reports are created.
Yes, created automatically.

What is going on ? Why is this ?
In other words: Once the machine is started, reports are not created at set interval.
A new start of the webserver and/or database server kicked the archiver to create the reports.

Will try now 1.2rc4 and see what happens.
Result in 2 days.

I was using rc1. Switching to rc5 now.

did update to .rc5, enabled debug for both, tracker debug and scheduled tasks.
This is the output:


Input parameters: <br/>array ( )
Loading plugins: { Provider,Goals }
Current datetime: 2011-02-24 01:00:38
-> Scheduled Tasks: Starting...

array (
  0 => 
  array (
    'task' => 'Piwik_CoreAdminHome.optimizeArchiveTable',
    'output' => 'Time elapsed: 0.011s',
  ),
  1 => 
  array (
    'task' => 'Piwik_PDFReports.dailySchedule',
    'output' => 'Time elapsed: 2.697s',
  ),
  2 => 
  array (
    'task' => 'Piwik_PDFReports.weeklySchedule',
    'output' => 'Time elapsed: 0.001s',
  ),
  3 => 
  array (
    'task' => 'Piwik_PDFReports.monthlySchedule',
    'output' => 'Time elapsed: 0.001s',
  ),
)

Finished Scheduled Tasks.
Next run will be from: 2011-02-24 01:59:50 UTC
Empty request => Piwik page
Piwik is a free open source web analytics alternative to Google analytics.End of the page.

array (
  '_pk_id_19d8ed9f' => '0b2c4c7f98fd6a70.1298508980.1.1298509190.1298508980',
  '_pk_ses_19d8ed9f' => '*',
  'PIWIK_SESSID' => 'lutk39ilhe70mn5glqd444h8p4',
)

Time elapsed: 2.836s

Seems to be ok.

Tomorrow I will see if the report is generated and sent to 2 addresses

piwik 1.2rc5, archiving set to “browser activated”. Pdf reports are generated automatically and sent to all users set for the site in question.

But I get 2 reports as suppose to one. They are sent with a time difference, first at 01.56am second at 02.16am

Any ideas ?

No luck so far with auto reports, but I noticed the reports are now in the correct language (:P)

why do people keep spamming the forum like kevin0128 when the links are NOT active!

try using RC5 which fixes many issues. see the other post

Matt,

piwik 1.2rc5 automatic pdf reports were generated and sent to specified email address.

Piwik 1.2 production, I still have the “old” problem, no reports are sent. Manually, all is fine and only 1 report is sent as expected.

Turning on debug mode for both (Tracker & Tasks) and calling piwik.php directly I get reports generated and get sent a bunch of them.
4 Daily reports
2 weekly reports

Here is the debug output


array (
  0 => 
  array (
    'task' => 'Piwik_CoreAdminHome.optimizeArchiveTable',
    'output' => 'Time elapsed: 0.040s',
  ),
  1 => 
  array (
    'task' => 'Piwik_PDFReports.dailySchedule',
    'output' => 'Time elapsed: 2.625s',
  ),
  2 => 
  array (
    'task' => 'Piwik_PDFReports.weeklySchedule',
    'output' => 'Time elapsed: 8.982s',
  ),
  3 => 
  array (
    'task' => 'Piwik_PDFReports.monthlySchedule',
    'output' => 'Time elapsed: 0.002s',
  ),
)

Finished Scheduled Tasks.
Next run will be from: 2011-03-11 04:27:58 UTC
Empty request => Piwik page
Piwik is a free open source web analytics alternative to Google analytics.End of the page.

array (
  '_pk_id_1_19d8' => '582dd3d00efd37d8.1299807614.2.1299810909.1299808551',
  'RCslb' => '36',
  'PIWIK_SESSID' => '5srclgq3fomjfs2qfp73kqtjd0',
)

Time elapsed: 11.757s

turbo, did you receive the same report 4 times? probably because you refreshed the page few times?

so, if you only query this page once, are reports sent as expected?

[quote=matt]
turbo, did you receive the same report 4 times? probably because you refreshed the page few times?

so, if you only query this page once, are reports sent as expected?[/quote]

Matt,

to your and my disappointment, I executed piwik.php 1 time only and received the reports as mentioned above. 4 daily , 2 weekly. And weekly was setup.

Hi Elan where is hosted your PIWIK

My Piwik is host at 1and1.fr and for me these are not working::X

  • automatic pdf report ( manual is working)

  • change the standard smtp to a personnal smtp …

If somebody can help me

Thanks a lot

I switched from RC5 to 1.2 and that seems to have been a step back.
Still no auto-reports and language reverted back to English.

Sorry guys at this stage I’m still unsure what is happening. Can you show a screenshot of the email reports you received? Are you sure they are similar (and for the same websites, dates, etc.) ? You would receive the reports several times if you set it up with the same email several times. Check your PDF reports configuration again for all your sites & users (as they are different for each combination)

@silenz

thank you for all your help. I found something relating to my problem in this thread.