# Solved plugin bug

**URL:** <https://meta.discourse.org/t/solved-plugin-bug/37146>\
**Category:** Bug\
**Tags:** solved\
**Created:** [December 26, 2015, 10:40am UTC](https://meta.discourse.org/t/solved-plugin-bug/37146 "2015-12-26T10:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [October 27, 2016, 7:12pm UTC](https://meta.discourse.org/t/solved-plugin-bug/37146/8 "2016-10-27T19:12:16Z")

</div>

I recently tried using the same code for adding category custom fields to a plugin and ended up getting the same error when attempting to add the custom field while creating a new category. The feature-voting plugin also uses the same pattern and produces the same error. Is there a way to get this to work so that custom fields can be added when creating a new category?

Quick and easy solutions are either disable the checkbox in the category-custom-fields connector if `category.custom_fields` is not defined, or to move the plugin’s category selection into site-settings.

---

_[View the full topic](https://meta.discourse.org/t/solved-plugin-bug/37146)._
