@anonymous-piwik-user opened this Issue on January 31st 2014

When using 2.0.3 and an token_auth for bulk tracking, as well as have PIWIK_TRACKER_MODE set to true.

On every valid bulk request submission I had the following error,

PHP Fatal error: Call to a member function fetchAll() on a non-object in ... /piwik/core/Db.php on line 164

I found that fetchAll() retrieved it's db object from get(), which was calling Tracker::getDatabase(), which was returning null.

I've submitted a fix/pull request here:


Upon adding my check, everything worked.

Please note that if I set PIWIK_TRACKER_MODE to false, then Piwik stops accepting my token_auth key.

I want my fix to be applied upstream, and it was suggested that a bug report needed to be submitted first.
Keywords: buk tracking

@mattab commented on February 1st 2014 Owner

Thanks for the report. So bulk request as explained here:


does not work for you in 2.0.3?

@mattab commented on February 4th 2014 Owner

In 74c865d9db2be1f80465e42750a2a1e8fcfbce91: Adding integration test for the Bulk Tracking API, it FAILS at present! refs #4603
Thanks for the report, we didn't catch this failure as it wasn't properly continuously tested!

@mattab commented on February 4th 2014 Owner

In a6e4884d1069dc5f8f4eb4c43ee779115fd924c2: Fixes #4603 Adding lazy DB connection call

This Issue was closed on February 4th 2014
Powered by GitHub Issue Mirror