tetsuo13 / Roundcube-Matomo-Tracking-Api-Plugin

Add Matomo (formerly Piwik) tracking server-side code to all requests in Roundcube
Other
1 stars 0 forks source link

Missing Argument in PiwikTracker::doTrackPageView() #1

Closed BuddelflinkDD closed 10 years ago

BuddelflinkDD commented 10 years ago

error is thrown when accessing roundcube: Missing argument 1 for PiwikTracker::doTrackPageView(), called in /srv/www/roundcube/plugins/piwik_tracking_api/piwik_tracking_api.php on line 65 and defined in /srv/www/roundcube/plugins/piwik_tracking_api/PiwikTracker.php on line 517

tetsuo13 commented 10 years ago

I've patched the error for now by supplying an empty page title. This resolves the PHP warning and doesn't change the behavior but this isn't ideal. It'd be nice to send page titles and it's apparently been missing from the beginning. Adding proper page titles will be a tad more difficult due to the nature of the hooks architecture -- ajax requests versus HTML output.