# Plugin causing errors during rebuild

**URL:** https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110
**Category:** Self-hosting
**Created:** [October 6, 2022, 9:35am UTC](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110 "2022-10-06T09:35:29Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 6, 2022, 10:44am UTC](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110/9 "2022-10-06T10:44:40Z")

</div>

The site that I saw had a bunch of those Post Custom Fields that had a bunch of strings that had been encoded a bunch of times so that they were unusable.

Some solutions, in order of complexity

- stop using the plugin (and perhaps switch to the new up votes)
- delete all of them
- delete the bad ones
- edit those fields to make the data back into valid json strings.

The site that I saw had bad data that was years old. This appears to be a bug that existed years ago that is only now being discovered.

It might be possible to write code to fix the broken json strings, but I wasn’t able to see how to do that in 10 minutes.

See [Question Answer Plugin - #301 by pfaffman](https://meta.discourse.org/t/question-answer-plugin/56032/301) for examples

---

_[View the full topic](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110)._
