Error while injecting dependencies into Piwik

I installed Matomo om my server and everything worked ok.

Then I had a problem with my website and the guy that helped me solve the website problem changed my url removing the “www” so now I have just “https” and not “https and www.”

I have a 301 redirect in my .htaccess file, so the website works ok.
Now I cannot open Matomo, I get the following error message when trying to log into Matomo

Error while injecting dependencies into Piwik\Translation\Loader\LoaderCache: No entry or class found for ‘Matomo\Cache\Lazy’

The error log gives:
[07-Jun-2024 04:11:04 UTC] PHP Warning: include(/home/meg/public_html/analytics/vendor/composer/…/matomo/cache/src/Lazy.php): Failed to open stream: No such file or directory in /home/meg/public_html/analytics/vendor/composer/ClassLoader.php on line 576

[07-Jun-2024 04:11:04 UTC] PHP Fatal error: Uncaught DI\NotFoundException: No entry or class found for ‘Matomo\Cache\Lazy’ in /home/meg/public_html/analytics/vendor/php-di/php-di/src/Container.php:136

Can anyone help ? or should I try re-installing Matomo ?