Error with Matomo (Web Analytics)

Website URL

https://computronic-web.es

Error Message

Hello everyone on the forum, I’ve installed Matomo, and when I go into the /matomo folder to start configuring it, I get the following error screen…

I downloaded Matomo from the official website and uploaded it to the hosting using FTP.

I’ve read that it’s an error in the php.ini file, but I don’t know how to fix it. I have free hosting; I don’t know if that’s the cause of the error. Thank you very much, regards.

Other Information

(other information and details relevant to your question)

That may not be something that can be fixed. Because of the way shared hosting works, environment settings like the php.ini can’t be changed without it affecting all users

It seems that Matomo wants to use the get_current_user() PHP function, but this function is disabled on our hosting. That’s not an error, it’s a deliberate restriction.

Still, looking at what the function does, I don’t see an immediate reason as to why this function needs to be disabled.

I’ll check upstream if this function could be re-enabled or replaced with a “stub” function so Matomo can keep working.

Hi, thank you very much, I was able to solve it, I installed Matomo from InfinityFree itself with Softauculus.

It is known that the latest version of Matomo has a bug, and the version I installed from Infinity is the previous one, and it worked fine for me.

Thank you all and have a great day!!! :grinning_face:

The issue breaking Matomo has been fixed now so you should be able to install it (or update your current installation)!

OK, thanks a lot

I’ll update it to the latest version later, since I had the previous one due to the error.

And I also need to install the geolocation database.

Thanks and have a great day everyone on the forum :grinning_face: