# Structure fields in Site blueprint: unable to edit/add data

**URL:** <https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691>\
**Category:** Questions\
**Tags:** v2\
**Created:** [July 27, 2015, 11:07am UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691 "2015-07-27T11:07:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielguillan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/danielguillan/32/766_2.png) [@danielguillan](https://forum.getkirby.com/u/danielguillan)\
**Post date:** [July 27, 2015, 11:07am UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691/1 "2015-07-27T11:07:34Z")

</div>

I’m unable to use the panel to add or edit entries in a structure field **only inside Site options**. It works perfectly on any other page of the site.

Given the following blueprint:

```yaml
title: Site
fields:
  foo:
    label: Foo
    type: structure
    entry: >
      {{ bar }}
    fields:
      bar:
        label: bar
        type: text

```

Whenever I try to add or edit an entry the modal window fails to launch (I just see the dark overlay layer) and get the following error:

```shell
Fatal error: Uncaught exception 'Exception' with message 'Invalid route' in project/panel/app/panel.php:222 
Stack trace: 
#0 project/panel/index.php(47): Panel->launch() 
#1 {main} thrown in project/panel/app/panel.php on line 222

```

Things I’ve tried:

- Create a simplified test-case (blueprint code above)
- Disable multilanguage support in `config.php`.
- Remove everything from `config.php`.
- Delete `site.php` from the content folder.
- Make sure Kirby, Toolkit and Panel are all up to date (2.1.0).
- Try using a fresh clone of the Starterkit and Langkit: it works.

Anyone have any idea of what the problem is? Or how i can debug it further?

---

<div class="post-metadata">

**Author:** ![prayasabhinav](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/prayasabhinav/32/1153_2.png) [@prayasabhinav](https://forum.getkirby.com/u/prayasabhinav)\
**Post date:** [October 31, 2015, 11:14am UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691/2 "2015-10-31T11:14:09Z")

</div>

Same problem. Am using the latest versions of kirby and panel too. Any luck?

---

<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:** [October 31, 2015, 11:47am UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691/3 "2015-10-31T11:47:52Z")

</div>

I suggest you do a fresh install and paste your content/assets/templates etc. into it. In my installations, structure fields in site settings do work.

---

<div class="post-metadata">

**Author:** ![monobasic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/monobasic/32/1035_2.png) [@monobasic](https://forum.getkirby.com/u/monobasic)\
**Post date:** [December 28, 2015, 1:08pm UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691/4 "2015-12-28T13:08:13Z")

</div>

Same problem here. I’ve tried kirby 2.1.1, 2.1.2 with panel/toolkit 2.1.1  
To reproduce add this example to site/blueprints/site.php: (under fields:)

```
  socialLinks:
      label: Social Links
      type: structure
      fields:
        icon:
          label: FontAwesome Icon Name
          type: text
        linkUrl:
          label: Link Url
          type: url
```

---

<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:** [December 28, 2015, 1:12pm UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691/5 "2015-12-28T13:12:20Z")

</div>

Have you tried with version 2.2.3? It works in my current test installation.

---

<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:03pm UTC](https://forum.getkirby.com/t/structure-fields-in-site-blueprint-unable-to-edit-add-data/1691/6 "2025-02-06T17:03:50Z")

</div>


