Fatal error when creating report


#1

Hi there,

I have just installed piwik and i only use log import via python script. I import 15 days of data until 15th november

when i tried o generate an email report and tried to download it from the web interface, nothing happened and some logs appeared in PHP:

[28-Nov-2013 13:00:59 UTC] PHP Fatal error: Call to undefined method Piwik_DataTable_Array::getRows() in /PIWIK/core/ReportRenderer/Html.php on line 136
[29-Nov-2013 13:53:41 UTC] PHP Fatal error: Call to undefined method Piwik_DataTable_Array::getRows() in /PIWIK/plugins/MultiSites/API.php on line 256

I tried to generate daily, weekly and monthly report (because of data that does not exist from 15th november) and PDF or HTML report and nothing changed.

did someone have ever seen that? (lack of library?, bug?)

thx a lot

Emmanuel


(Matthieu Aubry) #2

can you please try with the Piwik 2.0 from : 301 Moved Permanently

The latest beta works very well and I think this bug will be fixed!


#3

hi matt,

i installed the 2.0b11, but when i import data from web log files using the python import tool, i only have acces to visitor’s log whereas i had access to full logs (visits,…) in the previous (1.12) PIWIK version, is this normal ?

However, i must agree to the fact that the bug was corrected concerning email report :wink:

thanks for your reply


(Matthieu Aubry) #4

Can you post screenshot showing the problem?


#5

OK, after some tests, it seems that the python import have changed, let me explain:

  • in version 1.12, i just have had to import some files, and all data appeared in piwik (visits summary, visitor log, visit by hour, etc…), options used are full import (static, bot , http redirect)

  • in version 2.0b11, i have had to import data with the python script (with the same options as before but only visitor’s log appeared), and then to run an archive.php (–force-all-websites), at this moment all data appeared in the piwik interface .

if you need more data, i can prepare some screenshots for tomorrow

thanks for your help


(Matthieu Aubry) #6

thanks for report. If you can reproduce again, then it’s most likely a bug. Can you confirm & I’ll investigate


#7

Matt,

when importing data from the python script, it invalidates all date it meets during the treatment
options used: --enable-http-errors --enable-http-redirects --enable-static --enable-bots


54768 lines parsed, 54400 lines recorded, 129 records/sec (avg), 200 records/sec (current)
54768 lines parsed, 54400 lines recorded, 129 records/sec (avg), 0 records/sec (current)
Purging Piwik archives for dates: 2013-12-08 2013-12-09
To re-process these reports with your new update data, execute the piwik/misc/cron/archive.php script, or see: http://piwik.org/setup-auto-archiving/ for more info.

Once the import task is finished, i have the result of the Image1, so no data for visits whereas i can look at visitors’ log.
[attachment 1452 Image1.png]

If i want result of Image2, i must launch an archive.php
options used: --force-all-websites
[attachment 1451 Image2.png]

if i specify --invalidate-dates=NONE, archive.php does not reveal the last data imported any more, i must invalidate dates to play with archive.php again

cheers,


(Matthieu Aubry) #8

It is normal that you must archive.php, since the data needs processing

However you should not need to use the option --force-all-websites, ie. it should work simply without this option

Cheers


#9

Matt,

OK, I thought it was as in the previous version, in which we only needed to import_logs.py.

many thanks for your help


(Matthieu Aubry) #10

It should indeed not be required to run archive.php If you have setup “Allow browser trigger archiving” in general settings