# An error occurred while restoring from a backup: discourse\_functions.raise\_discourse\_voting\_category\_settings\_readonly() does not exist

**URL:** <https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988>\
**Category:** Self-hosting\
**Tags:** backups\
**Created:** [August 3, 2024, 8:22pm UTC](https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988 "2024-08-03T20:22:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [August 27, 2024, 10:31pm UTC](https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988/5 "2024-08-27T22:31:07Z")

</div>

> [@pfaffman](#):
>
> `ERROR: type "hotlinked_media_status" already exists`

That seems different. I forgot about it in the last three weeks but since then we had a few cases of backups failing to restore when the post voting plugin was not installed. So that’s a thing for sure.

But `hotlinked_media_status` is a core table from 2022… so that must be something different.

`./db/migrate/20220428094026_create_post_hotlinked_media.rb`

(BTW I keep a diary of all issues from the past 11 years and I don’t have any mention of that one)

---

_[View the full topic](https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988)._
