matomo-org / matomo-for-wordpress

Get a fully functioning Matomo Analytics for your WordPress. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Privacy is built-in. 100% data ownership, no one else can see your data. We love Pull Requests!
https://matomo.org
GNU General Public License v3.0
119 stars 25 forks source link

Fatal error when trying to access the reports page #297

Closed AgileParent closed 4 years ago

AgileParent commented 4 years ago

Since the update before the last I cannot access my reports page any more. It shows me a fatal error: "Matomo encountered an error: Class 'Twig_Loader_Filesystem' not found (which lead to: Circular dependency detected while trying to resolve entry 'Piwik\Twig')"

I can still access data inside Wordpress, the summary tab still works.

Here's the log:

Matomo

Endpoints

Crons

Vorgeschriebene Prüfungen

Optionale Prüfungen

Matomo Settings

Logs

WordPress

WordPress Plugins

Server

Database

Browser

tsteur commented 4 years ago

Thanks for creating the issue @AgileParent and sorry about the trouble.

The last update was fairly small and we didn't change anything around twig. I'm thinking it might be caused by some other plugins and there might be some incompatibility.

I've just installed the same plugins and couldn't reproduce it just yet. However, I could not install these plugins as they aren't on the WordPress plugin directory:

There's a chance it's maybe caused by one of them. Do you remember if you maybe updated any of them recently?

Any chance you could send us a zip of these plugins to wordpress at matomo.org so we could try and reproduce it? We wouldn't actually use the plugin beyond this. Depending how familiar you are with PHP you could maybe also check yourself if any of these plugins contain Twig?

AgileParent commented 4 years ago

I performed a database search and the only plugin of the above listed that used Twig, was amazon-simple-affiliate (Documentation is available here: https://docs.getasa2.com/). I am using the Pro-Version, which I am pretty sure I am not allowed to share. Hope that helps.

By the way: It was not the last update that caused the trouble, it was the update before the last one.

tsteur commented 4 years ago

I've pinged the developers of that plugin. Maybe they can send me a copy. I'll keep you updated.

tsteur commented 4 years ago

@AgileParent They have already replied and mentioned they have a fix ready by the sounds. They asked that you get in touch with them so they can probably send you the fixed version. Would you be able to email them? That be great.

AgileParent commented 4 years ago

I have contacted ASA support and awaiting their response.

AgileParent commented 4 years ago

The latest ASA update resolved the issue. Thank you for your support!