Problem: Call to a member function getTableArchiveNumericName() on a non-object


#1

I am having this issue when I, after switching date range to “Year”, click the “All Websites button”


Fatal error: Call to a member function getTableArchiveNumericName() on a non-object in /var/www/html/piwik/core/Archive/Array/IndexedBySite.php on line 139 

If I change &period=year to “month” it displays fine.

I am running archive.sh hourly, and I have run it several times before trying this, and it still does not work.

Please advise on what to do. I ran google2piwik on a couple of sites a few days ago if that helps, but they seem to display their reports fine, yearly too. I also have some newly created sites with 0 visitors, maybe the report creation isn’t triggering for them (have reports generation to “off” in user interface).


#2

Seems to work again after deleting piwik_archive_* and then running archive.sh

What makes deleting the tables different though? Shouldn’t it empty the tables before it re-generates the reports?


#3

I can observe the same behaviour, even with the “Month” view.