# How to go about debugging "The field class is missing" error?

**URL:** <https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062>\
**Category:** Questions\
**Tags:** v2\
**Created:** [August 18, 2018, 4:50pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062 "2018-08-18T16:50:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffl](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@waffl](https://forum.getkirby.com/u/waffl)\
**Post date:** [August 18, 2018, 4:50pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/1 "2018-08-18T16:50:27Z")

</div>

I’m trying to learn how to build a plugin for Kirby, in particular for a custom field, and am running into an error when loading the panel:

> The field class is missing for: …

I was wondering how to go about debugging this? I’m looking at a number of existing plugins for reference and am not sure what this is referring to?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 18, 2018, 5:04pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/2 "2018-08-18T17:04:51Z")

</div>

This error can occur in two circumstances, do you have a line number for me?

---

<div class="post-metadata">

**Author:** ![waffl](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@waffl](https://forum.getkirby.com/u/waffl)\
**Post date:** [August 18, 2018, 5:07pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/3 "2018-08-18T17:07:19Z")

</div>

Ah it is `/panel/app/src/panel/form/plugins.php:59`

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/8db6ad855b61994c65691e0f0226870e05f959b1.png)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 18, 2018, 5:26pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/4 "2018-08-18T17:26:49Z")

</div>

Maybe. a typo somewhere, did you name your field exactly like the file?

If you post your code, it would probably make things easier.

---

<div class="post-metadata">

**Author:** ![waffl](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@waffl](https://forum.getkirby.com/u/waffl)\
**Post date:** [August 18, 2018, 7:21pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/5 "2018-08-18T19:21:24Z")

</div>

Thank you for the response - the code is just so rough as it’s early on, but after trying so many different versions of naming things, I re-read the documentation on custom fields and realized far too late that the class name itself, by convention requires it to end with ‘Field’:

[https://getkirby.com/docs/developer-guide/panel/fields#anatomy-of-a-field-folder](https://getkirby.com/docs/developer-guide/panel/fields#anatomy-of-a-field-folder)

`phone	/site/fields/phone/phone.php	class PhoneField {}`

So I think that was the issue all along, not the folder structure I had been using, and it is working now!

That said, I’m not really sure how things with hyphens/dashes in the name work, as I can only seem to get things working without any dashes.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 18, 2018, 7:42pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/6 "2018-08-18T19:42:42Z")

</div>

Yes, that was the issue then. You can‘t have dashes in your class name.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:26pm UTC](https://forum.getkirby.com/t/how-to-go-about-debugging-the-field-class-is-missing-error/11062/7 "2025-02-06T17:26:28Z")

</div>


