# MediaWiki content gone, "History" shows DBQueryError

**URL:** https://discuss.freedombox.org/t/mediawiki-content-gone-history-shows-dbqueryerror/1703
**Category:** Uncategorized
**Created:** [September 2, 2021, 12:37pm UTC](https://discuss.freedombox.org/t/mediawiki-content-gone-history-shows-dbqueryerror/1703 "2021-09-02T12:37:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![njoseph](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/njoseph/32/17_2.png) [@njoseph](https://discuss.freedombox.org/u/njoseph)
#### Post date: [September 2, 2021, 2:48pm UTC](https://discuss.freedombox.org/t/mediawiki-content-gone-history-shows-dbqueryerror/1703/2 "2021-09-02T14:48:41Z")

</div>

I don’t think this is a general issue with upgrading to 1.35, since I have a MediaWiki instance on Debian testing which is already at that version.

Usually on upgrade of a MediaWiki version, Debian expects the system administrator to run a maintenance script called `update.php`. FreedomBox has been doing this for each MediaWiki version by incrementing the version number of the app, thus triggering the app’s setup to run again. We didn’t do this yet for the 1.35 upgrade.

You can always find the files that need to be backed up in the app module’s [manifest.py](https://salsa.debian.org/freedombox-team/freedombox/-/blob/master/plinth/modules/mediawiki/manifest.py) file. In case of MediaWiki, the database is a single SQLite file. (I just noticed that uploaded images are not in the list of directories to backup 😮)

First check if the package `mediawiki` has a broken install. If that’s the case, you can try to fix it using `apt -f install`, otherwise try [reinstalling](https://wiki.debian.org/FreedomBox/QuestionsAndAnswers?action=show&redirect=FreedomBox%2FFAQ#I_messed_up_the_installation_of_an_application._Can_I_reinstall_it_somehow.3F) MediaWiki. If you need to purge the package, take a manual backup of /var/lib/mediawiki/images.

---

_[View the full topic](https://discuss.freedombox.org/t/mediawiki-content-gone-history-shows-dbqueryerror/1703)._
