Upgrade to 2.4.0 throws PHP Fatal error (Call to undefined method Piwik\Tracker\Db\Pdo\Mysql::getProfiler() )


#1

Hi,

After upgrading to 2.4.0 I get occasional code 500 errors:

GET /piwik.php?action_name=XXXXX%20-%20XXXX&idsite=2&rec=1&r=XXXXX&h=21&m=53&s=58&url=https%3A%2F%2FXXXXX.com%2F&urlref=https%3A%2F%2Fwww.2FXXXXX.com%2F&_id=XXXXXXXXX&_idts=XXXXXXXX&_idvc=1&_idn=1&_refts=XXXXXXXX&_viewts=XXXXXXXX&_ref=https%3A%2F%2Fwww.2FXXXXX.com%2F&pdf=1&qt=1&realp=0&wma=0&dir=1&fla=1&java=1&gears=0&ag=1&cookie=1&res=1366x768&gt_ms=688 HTTP/1.1" 500 338 “https:/XXXXX.com/” “Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36”

The corresponding PHP fatal exception in the logs is:

PHP Fatal error: Call to undefined method Piwik\Tracker\Db\Pdo\Mysql::getProfiler() in /var/www/piwik_2.4.0/core/Db.php on line 131

Any ideas? It doesn’t seem to always occur… and when I manually hit the same URL I get a code 200 so hard to reproduce…

This seems to be a related commit, should the DB tracker here not be calling getProfiler, some bug perhaps? http://lists.piwik.org/pipermail/piwik-git/2014-February/008394.html


(Matthieu Aubry) #2

Thanks for the report! I’ve created a ticket: Call to undefined method Piwik\Tracker\Db\Pdo\Mysql::getProfiler() in core/Db.php on line 131 · Issue #5417 · matomo-org/matomo · GitHub