Matomo Install/Update failing, crashing sites
-
Hi there – we have been using Matomo on a couple of our sites for a while with no problems but since the most recent update, it appears to be causing a fatal crash of the whole WordPress stack, leading to Internal Server Errors and taking the sites offline. We first spotted this when cloning a current live site into a development environment for some forthcoming changes and the dev environment immediately fell over. The live environment seemed OK, but when the Matomo plugin was updated a little later, that site also crashed.
We had to remove the matomo plugin files manually (via FTP) to get the sites back up.
I’ve since tried to install Matomo on a third site (dev environment) to try to figure out what’s going wrong and the install won’t even complete – it just fails every time.
The live environment is running under PHP 8.0, the dev environments under PHP 8.1.
I’ve taken a quick look through the posts here and can’t see anything like this mentioned so far.
The error in the dev environment following the clone operation (as reported in the WordPress error email) was:
An error of type E_ERROR was caused in line 36 of the file /home/agw_thsxec/dev-ruthclayton.glendrian.com/wp-content/plugins/matomo/shared.php. Error message: Uncaught Error: Failed opening required '/home/agw_thsxec/dev-ruthclayton.glendrian.com/wp-content/plugins/matomo/classes/WpMatomo/Paths.php' (include_path='.:') in /home/agw_thsxec/dev-ruthclayton.glendrian.com/wp-content/plugins/matomo/shared.php:36
(It looks like this may have been due to a fault during the clone operation? Unfortunately, I can’t check whether the missing file was actually there, as I had to delete the matomo plugin files to get the site back up.)
The error in the live environment (again, as reported in the automatic WordPress crash email) was:
An error of type E_ERROR was caused in line 245 of the file /homepages/27/d4296089782/htdocs/wordpress/wp-content/plugins/matomo/app/bootstrap.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /homepages/27/d4296089782/htdocs/wordpress/wp-content/plugins/matomo/app/bootstrap.php:245
The error when trying to install into the other dev environment for testing is:
Installation failed: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
There’s nothing showing up in the server error log for any of them.
Sorry I don’t have anything more specific but has anyone seen anything similar in the last 24 hours or so with the latest version of the Matomo plugin? Are there any known issues?
- The topic ‘Matomo Install/Update failing, crashing sites’ is closed to new replies.