# 升级到新版本时出现“参数数量错误”

**URL:** <https://meta.discourse.org/t/wrong-number-of-arguments-on-upgrade-to-new-version/262083>\
**Category:** Development\
**Created:** [2023年四月18日 13:32 UTC](https://meta.discourse.org/t/wrong-number-of-arguments-on-upgrade-to-new-version/262083 "2023-04-18T13:32:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paresy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paresy/32/96471_2.png) [@paresy](https://meta.discourse.org/u/paresy)\
**Post date:** [2023年四月18日 13:53 UTC](https://meta.discourse.org/t/wrong-number-of-arguments-on-upgrade-to-new-version/262083/2 "2023-04-18T13:53:19Z")

</div>

我找到了答案：[Add a custom per-user setting in a plugin](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048)

第一个帖子已正确更新，我需要将我的行更新为：

> register\_editable\_user\_custom\_field [:myfield, myfield : {}]

paresy

---

_[View the full topic](https://meta.discourse.org/t/wrong-number-of-arguments-on-upgrade-to-new-version/262083)._
