Leftover files after manual update

Hello!
I’ve just updated manually to version 3.9.1 and under “Diagnostic” —> “System Check” I see this message:

Directories were found in your Matomo but we didn’t expect them.
–> Please delete these directories to prevent errors. <–

  1. Directory to delete: vendor/JShrink
    To delete all these directories at once, you can run this command:
    rm -Rf /home/k8s2snhl1cr0/public_html/piwik/vendor/JShrink
    Files were found in your Matomo but we didn’t expect them.
    –> Please delete these files to prevent errors. <–
  2. File to delete: plugins/Referrers/Widgets/GetKeywordsForPage.php
    To delete all these files at once, you can run this command:
    “/home/k8s2snhl1cr0/public_html/piwik/plugins/Referrers/Widgets/GetKeywordsForPage.php”

Now, my question is… what EXACTLY should I delete?

  1. Say, in the first instance… Should I delete the directory “vendor” and everything in it (incl. sub-directory “JShrink” and all inside of it and there’s lots of stuff in it and even another sub-directory “src”? OR… just to delete a sub-directory “JShrink” and all inside of it as well?
  2. As per second issue with a file… If I got it right, then I should ONLY delete this PHP file:
    GetKeywordsForPage.php and that’s it"

Just wanted to double-check not to break anything… Thanks!

Hi,

In the first case just delete the JShrink directory and everything in it is (not the whole vendor).
Its content should now be in vendor/matomo-org/jshrink (which fixed a potential bug in the future)

In the latter case just delete the one file (this feature has been removed as it has been broken for a long time and is pretty useless anyway)

Thank you! I’ve done exactly what you’d said.