Oops... there was a problem during the request after updating Matomo (Piwik) to 4.8.0

Written by - 0 comments

Published on - Listed in PHP Internet

After having updated Matomo (old name: Piwik) to the current version 4.8.0, many of the dashboard widgets did not show up anymore and instead showed an error message:

Oops... there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Matomo administrator for assistance.

Unfortunately Matomo does not write logs which would show what exactly this error causes. No PHP errors were logged either (using Apache error log).

At the end it turned out to be an issue with file permissions. Certain files were not writeable by the www-data user. They can be quickly identified using find:

ck@webserver:/var/www/piwik# find . ! -user www-data

Note: Depending on your setup, the user "www-data" might be different. Make sure you use the user under which the PHP process will run on.

Clearly a couple of files are not owned by www-data, which should not be the case. Make sure the whole Matomo directory (/var/www/piwik here) is owned by www-data:

root@webserver:/var/www/piwik# chown -R www-data:www-data /var/www/piwik/

Right after this and a refresh of the dashboard, the widgets correctly loaded again:

Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.