Support » Plugin: Matomo Analytics - Ethical Stats. Powerful Insights. » Plugin was deleted after an error occurred during update

  • Resolved kbam


    Hi all,

    I just updated the Matomo Analytics WordPress plugin through the WP dashboard. It took quite a while. After a couple of minutes I got an error message, telling me that the automatic update could not be completed and the plugin was deleted due to an error.

    I’m not joking. The plugin is completely gone. I tried to reinstall it, but the server files remained. Hence, I’d have to delete all plugin files in order to be able to reinstall it.

    Would that be the best option that I have? Wouldn’t I lose all the gathered data and settings? What could I do to fix the issue without losing all of my data? What caused the problem in the first place?

    Appreciate your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Thomas


    Hi @kbam sorry about all that. It seems WordPress had some issue there. I’m not sure what WP is doing when they are deleting a plugin but we’re basically deleting data only when the plugin is uninstalled. Meaning for example you click on “WP Admin -> Plugins -> Select our plugin -> Uninstall”.

    We do have a setting in “WP Admin Dashboard -> Matomo Analytics -> Settings -> Advanced” to not delete all data on uninstall but I’m assuming you can’t change this setting currently because you might need to reinstall it again.

    If you can make changes to your wp-config.php then you could force to not delete any data by adding the following entry:

    define('MATOMO_REMOVE_ALL_DATA', false);

    I have generally no idea what could have caused this problem in the first place unfortunately. There could be many different issues and I’m not sure what WordPress does exactly during an update.

    If you can, I would recommend to remove the files manually (wp-content/plugins/matomo) and then following the steps for option 2 in . Alternatively, maybe also option 3 would work. If you can add the above entry to wp-config.php then also option 1 should safely work. In any case I would recommend to edit wp-config.php if you can.

    Does this help?

    Plugin Author Thomas


    Hi @kbam have you maybe had a chance to look at my previous comment?

    Thread Starter kbam


    @tsteur Hi Thomas,

    thanks for your support and care! I have fixed the problem by manually installing the plugin using FTP. Luckily, all my configurations, data and tags were automatically back and everything works now. I hope that I won’t get a heart attack the next time I update Matomo again, but for now, everything is fine! 🙂

    Appreciate your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin was deleted after an error occurred during update’ is closed to new replies.