Error after update to 3.9.0: is_dir(): open_basedir restriction

After automatically updating to 3.9.0, I receive a number of similar error messages on the “All Websites” screen, for example:

WARNING: / ... Warning - is_dir(): open_basedir restriction in effect. File(/ ... www.example.complugins/CustomAlerts) is not within the allowed path(s): (/ ... - Matomo 3.9.0 - Please report this message in the Matomo forums: (please do a search first as it might have been reported already)

Please note that “plugins” in the path is attached to the domain name without any slash.

I solved the problem in core/plugin/Manager.php on line 450 by changing

$corePluginsDir = PIWIK_INCLUDE_PATH . 'plugins/' . $pluginName;


$corePluginsDir = self::getPluginsDirectory() . $pluginName;

This automatically seems to add the slash.

1 Like


Thanks for the report, this has already been reported in and will be fixed here:
Adds missing / in directoy check by sgiehl · Pull Request #14228 · matomo-org/matomo · GitHub

Yes, I confirm there are errors.
Plus, visits are also incorrectly displayed (layout is broken)

I also don’t like the gray icons displayed in the panel where the user’s path on the site is shown, please return as it was …

Your correction of the code restored the correct operation of Matomo
PS do not forget to clear the cache

1 Like