Matomo Analytics has stopped working
-
On 23 March Matomo Analytics reported a big drop-off in visitors to my website. Yesterday and today it is telling me “There is no data to report.”
My website is hosted by SiteGround and their statistics show that there are plenty of visitors coming to my website. So does Microsoft Clarity.
So it appears that Matomo Analytics has somehow become detached from my website. I have not changed any settings for the WordPress plugin or on my account on Matomo’s website. I’m hoping that someone will help me understand what’s gone wrong and how to put it right.
Many thanks.
The page I need help with: [log in to see the link]
-
hi @tatami3lri
sorry to hear that you encounter some issue with our plugin.
Do you have visits in the visitor log?
Kind regardsMat
Thanks for responding, Mat. The detailed visits log for the last 24 hours under my account on Matomo’s website is showing no visits. FWIW, the tracking code in the plugin is:
<!-- Matomo --><script type="text/javascript"> var _paq = window._paq = window._paq || []; _paq.push(['setDownloadExtensions', "jpg|jpeg|png"]);_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);_paq.push(['alwaysUseSendBeacon']);_paq.push(['setTrackerUrl', "\/\/www.aenigma-images.com\/wp-content\/plugins\/matomo\/app\/matomo.php"]);_paq.push(['setSiteId', '1']);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.src="\/\/www.aenigma-images.com\/wp-content\/uploads\/matomo\/matomo.js"; s.parentNode.insertBefore(g,s); </script> <!-- End Matomo Code -->I’ve read the page on troubleshooting but as a non-coder I’m wary of messing with the wp-config.php file.
With best wishes
Philip
Hi @tatami3lri
if you have no visits in your visitor log it means that your tracking code is not working.
Possible explanations can be found here
https://matomo.org/faq/troubleshooting/faq_58/
But you have DOM errors and javascript errors on your page. Please fixes them because it could explain why your script does not work.Kind regards
Mat
Hi @tatami3lri
You have also a 500 error code when trying to reach the matomo.php file. Check your log files to see why you have this error.
Kind regards
Mat
Mat
I have realised that the problem started when I updated a plugin called Perfmatters (you may be familiar with it). I have contacted their support team and this is what they’ve found.
Fatal error: Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php:232 Stack trace: #0 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php(203): GeoIp2\Database\Reader->getRecord('City', 'City', '73.11.38.19') #1 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php(73): GeoIp2\Database\Reader->modelFor('City', 'City', '73.11.38.19') #2 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php(130): GeoIp2\Database\Reader->city('73.11.38.19') #3 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/plugins/UserCountry/VisitorGeolocator.php(145): Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2\Php->getLocation(Array) #4 /home/customer/www/ae in /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php on line 232They have suggested:
However, I checked their docs and it looks like it might be a server extension issue? https://matomo.org/faq/troubleshooting/how-do-i-fix-the-error-call-to-undefined-method-maxminddbreadergetwithprefixlen/
Are you able to look into that? Or do you have anyone that can check to see if that extension is installed?
Can you help me with this?
With thanks and best wishes
Philip
Hi @tatami3lri
can you post your system report available from the menu Matomo Analytics > Diagnostics?
Kind regards
Mat
Thanks, Mat. Here it is:
Fatal error: Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php:251 Stack trace: #0 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php(221): GeoIp2\Database\Reader->getRecord('City', 'City', '194.57.91.215') #1 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php(84): GeoIp2\Database\Reader->modelFor('City', 'City', '194.57.91.215') #2 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php(130): GeoIp2\Database\Reader->city('194.57.91.215') #3 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2.php(68): Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2\Php->getLocation(Array) #4 in /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php on line 251 There has been a critical error on this website. Please check your site admin email inbox for instructions.I’ve also, three minutes ago, had this automated email message from WordPress:
An error of type E_ERROR was caused in line 251 of the file /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php. Error message: Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php:251 Stack trace: #0 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php(221): GeoIp2\Database\Reader->getRecord('City', 'City', '194.57.91.215') #1 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/wp-cookie-allow/vendor/geoip2/geoip2/src/Database/Reader.php(84): GeoIp2\Database\Reader->modelFor('City', 'City', '194.57.91.215') #2 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php(130): GeoIp2\Database\Reader->city('194.57.91.215') #3 /home/customer/www/aenigma-images.com/public_html/wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2.php(68): Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2\Php->getLocation(Array) #4This relates to the GDPR plugin I’ve been using over the past couple of years. It’s never given me any trouble before but I’m wondering if the two things are related?
I greatly appreciate your help here.
Best wishes
Philip
Hi @tatami3lri
I need this report to be able to identify if there is a plugin responsible of this error.
Is it what you get when you click on the diagnostic link in your wordpress dashboard?
Kind regardsMat
The message I sent you is what I get when I click on the Diagnostics link in the Matomo Analytics menu on the left-hand side of my WordPress dashboard. I can’t see any other diagnostics link. If I’ve got this wrong, please could you tell me where to look and I’ll get right back to you.
Many thanks
Philip
Hi @tatami3lri
so could you download the wp command line client from https://wp-cli.org/ and copy paste the result of the command
php wp-cli.phar plugin list?Kind regards
Mat
I’ve tried to follow your instructions, Mat, but I’m having no joy.
I downloaded the wp-cli.phar file using wget (I couldn’t figure out how to download curl) after downloading and installing Home-brew. I then copied and pasted the command you sent me and hit carriage return but nothing happened.
Since then I closed Terminal by mistake and now the whole thing seems to have vanished.
Could I direct message you a link to access my WordPress dashboard so you can get the information you need because I’m clearly well out of my depth here?
With best wishes
Philip
Thanks, Mat. I’ve sent you a link.
Best wishes
Philip
Since my last post, I’ve been exchanging emails with mattmary, who has been really helpful and persistent. She’s helped me to identify the problem, which turned out to be a clash with another plugin – 301 Redirects. I’ve now deactivated it for the time being and asked the author to investigate and update 301 Redirects.
-
This reply was modified 4 years, 2 months ago by
tatami3lri.
-
This reply was modified 4 years, 2 months ago by
The topic ‘Matomo Analytics has stopped working’ is closed to new replies.