Cannot declare class Piwik\Plugins\

Hi,

i have installed Matomo 4.13 on a managed Server (freebsd with Apache).
Sometimes i get an error for some Plugins.

For example:
Fatal error: Cannot declare class Piwik\Plugins\Referrers\Columns\ReferrerType, because the name is already in use in /usr/local/www/apache24/data/webseiten/matomo/plugins/Referrers/Columns/ReferrerType.php on line 0

Fatal error: Cannot declare class Piwik\Plugins\Actions\Columns\PageUrl, because the name is already in use in /usr/local/www/apache24/data/webseiten/matomo/plugins/Actions/Columns/PageUrl.php on line 0

Fatal error: Cannot declare class Piwik\Plugins\UsersFlow\Columns\Interactions, because the name is already in use in /usr/local/www/apache24/data/webseiten/matomo/plugins/UsersFlow/Columns/Interactions.php on line 0

when i deactivate an re activate an Plugin it works again for a few Minutes before the error message reappears.

Does someone know where the problem could be?
I have installed the Premium Bundle

Frank

Hi Frank, did you solve it? I am having the same Issue. For Example: PHP Fatal error: Cannot declare class Piwik\Plugins\CoreHome\Columns\UserId, because the name is already in use.

Hi @tomharding, @Frank79
Looking at GitHub, the reason could be the existence of old not deleted files.
Can you check if there is unneeded (php) files in your file tree? :gear: > Diagnostic > System Check then File integrity section.