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: / ... www.example.com/core/Plugin/Manager.php(451): Warning - is_dir(): open_basedir restriction in effect. File(/ ... www.example.complugins/CustomAlerts) is not within the allowed path(s): (/ ... www.example.com/:/tmp/) - Matomo 3.9.0 - Please report this message in the Matomo forums: https://forum.matomo.org (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;

to

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

This automatically seems to add the slash.

1 Like

Hi,

Thanks for the report, this has already been reported in https://github.com/matomo-org/matomo/issues/14226 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 …

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

1 Like