Impossible to access an attribute ("idVisit")


I moved my website to a new server. I tried to copy all files, including the database. PIWIk is running, but now I got some error messages. Fot the live visitors there is a message:

Error: Impossible to access an attribute (“idVisit”) on a string variable (“error”) in “@Live/getLastVisitsStart.twig” at line 6

Does anybody know what to do?


Please update to our latest Beta version: I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo

if you still have a problem then please create a bug report @ Issues · matomo-org/piwik · GitHub

Hi Michaelxxx,

Happened the same to me when i installed the SSL certificate to my piwik domain.

I don’t know how your server handles the request but “in my case”, as I had to force the https I had to modify the config file.

What did I do? In the config/config.ini.php file, added under the [General] section the following:

proxy_host_headers[] = HTTP_X_FORWARDED_HOST

See if that works for you.