Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Getting PHP errors after Matomo upgrade

$
0
0

I upgraded Matomo to the recent version today. After the ugrade, I get the following PHP errors:

PHP Fatal error: Class ‘MatomoTracker’ not found in ****/PiwikTracker.php on line 50

I am using the following code to track pageviews:

<?php // -- Matomo Tracking API init -- require_once (__DIR__ . '***PiwikTracker.php'); PiwikTracker::$URL = ***; $tracker = new PiwikTracker(***); $tracker->setTokenAuth(***); $tracker->setIp(***); $tracker->doTrackPageView(***); ?>

Before the upgrade it was working fine. I downloaded the latest PiwikTracker.php as mentioned in https://matomo.org/docs/tracking-api/, but then also it did not work. Any help will be much appreciated.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles