Greetings from Vienna!
I am asking this community for help with an issue after upgrading my Matomo instance from the latest 3.x version to 4.0.5. Since the upgrade, I am no longer receiving reports by email, which was working with version 3.x for more than 2 years.
In Firefox, when I click on “Send report now” I can briefly (for less than a second) see an error message in red: “Failed to load HTML file - Please check if you have an ad blocker or something similar enabled.”.
Again in Firefox, the following is shown in the console:
While I do have an ad blocker installed in Firefox, it is disabled for the Matomo instance. So I installed Chrome without any extensions. In Chrome, when I click on “Send Report now”, I can briefly see a success message, but I still don’t receive any emails.
In Chrome, I also do not see any messages in the console.
This happens independent from the report format (HTML or PDF) and whether I have chosen to create graphs or not. Interestingly, when I click on “Download”, this works perfectly fine in both Firefox and Chrome. The HTML report is opened in a new window, and the PDF report is downloaded as expected. The content is always fine, and the charts are accurate.
My Matomo instance is running on Nginx, which I have configured according to the Matomo-Nginx configuration on GitHub.
What I have read and tried so far to get my email reports working again:
- https://wordpress.org/support/topic/email-reports-failed-to-load-html-file/ (although this does not really apply)
- Reports are empty / not generated
- Read the “How do I configure my server to let Matomo serve HTML files?” FAQ entry
- Executed & verified
chmod -R 755 plugins/folder, as suggested in various places
- Completely cleaned out the tmp folder
- I have enabled DEBUG logging in Matomo, but there are no entries related to email
- The Nginx error log does not show any entries related to Matomo
Let me point out again that there was no change to the configuration when Matomo was upgraded. The configuration was working fine with Matomo 3.x and I did receive weekly emails.
Any suggestions are welcome, thank you for reading through this.