# Problem panel control

**URL:** https://forum.getkirby.com/t/problem-panel-control/25035
**Category:** Questions
**Tags:** v3
**Created:** [March 19, 2022, 3:30pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035 "2022-03-19T15:30:34Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![delphine\_bellante](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/delphine_bellante/32/11646_2.png) [@delphine\_bellante](https://forum.getkirby.com/u/delphine_bellante)
#### Post date: [March 19, 2022, 3:30pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/1 "2022-03-19T15:30:34Z")

</div>

Hi everyone !  
I have a problem with my panel’s control in kirby. the pages doesn’t show there. The information say “pages not yet”, but there are 3 pages.  
And, when I add a page, I can’t preview that.  
The error message is : Whoops\Exception\ErrorException thrown with message “Undefined variable: gallery”

Stacktrace:  
#9 Whoops\Exception\ErrorException in /Applications/MAMP/htdocs/starterkit-main2/site/templates/bsr-template.php:41  
#8 Whoops\Run:handleError in /Applications/MAMP/htdocs/starterkit-main2/site/templates/bsr-template.php:41

Thank you all, have a nice day.

---

<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: [March 19, 2022, 3:38pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/2 "2022-03-19T15:38:40Z")

</div>

Hi and welcome to the Kirby forum

To be able to help you, I would need some more information. Obviously, you have made some changes to the Starterkit and added and/or removed the existing pages.

The Panel will only ever show what you define in your blueprints, i.e. the `/site/blueprints/site.yml` file for the Panel “Dashboard” and the page specific blueprints for pages and their subpages.

Could you post what is currently in your site.yml and what pages you have created with which content file names?

---

<div class="post-metadata">

### Author: ![delphine\_bellante](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/delphine_bellante/32/11646_2.png) [@delphine\_bellante](https://forum.getkirby.com/u/delphine_bellante)
#### Post date: [March 19, 2022, 3:44pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/3 "2022-03-19T15:44:51Z")

</div>

the **site.yml :**

```auto
columns:
 
  - width: 1/2
    sections:
      bsr: sections/bsr
  
  - width: 1/2
    sections:
      
      Casalina: sections/casalina

```

ONE PAGE : **bsr.yml :**

```auto
icon: 🖼

sections:
  drafts:
    extends: sections/bsr
    headline: Drafts
    status: draft

  listed:
    extends: sections/bsr
    headline: Published BSR
    status: listed

```

---

<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: [March 19, 2022, 3:48pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/4 "2022-03-19T15:48:05Z")

</div>

> [@delphine\_bellante](#):
>
> ` extends: sections/bsr`

And those sections definitions exist as well?

---

<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: [March 19, 2022, 3:49pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/5 "2022-03-19T15:49:34Z")

</div>

For the other error, you have to check the `bsr-template.php` file. You are obviously using a variable called `$gallery` that is nowhere defined.

---

<div class="post-metadata">

### Author: ![delphine\_bellante](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/delphine_bellante/32/11646_2.png) [@delphine\_bellante](https://forum.getkirby.com/u/delphine_bellante)
#### Post date: [March 19, 2022, 3:56pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/6 "2022-03-19T15:56:13Z")

</div>

yes **bsr.yml :**

type: pages  
headline: BUILDING SOCIAL RESILIENCE  
parent: kirby.page(“bsr”)  
size: small  
info: “{{ page.images.count }} image(s)”  
layout: cards  
template: BSR-template  
empty: Pas de page du BSR  
image:  
query: page.cover  
cover: true  
ratio: 5/4

---

<div class="post-metadata">

### Author: ![delphine\_bellante](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/delphine_bellante/32/11646_2.png) [@delphine\_bellante](https://forum.getkirby.com/u/delphine_bellante)
#### Post date: [March 19, 2022, 4:11pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/8 "2022-03-19T16:11:07Z")

</div>

ok, the saw the error in home.yml, I have the preview of my page in mu website.

But, my panel "dashboard is empty. I don’t see my pages to modify that.

 ![Capture d’écran 2022-03-19 à 16.25.22](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/e/e55743c29aa5061baa2de0ed295316bb29ac1795.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: [March 19, 2022, 4:12pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/9 "2022-03-19T16:12:43Z")

</div>

But that looks like what it should look like. With the two pages that don’t seem to have any subpages yet. If you click on the headlines, you will land on the respective pages.

---

<div class="post-metadata">

### Author: ![delphine\_bellante](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/delphine_bellante/32/11646_2.png) [@delphine\_bellante](https://forum.getkirby.com/u/delphine_bellante)
#### Post date: [March 19, 2022, 4:21pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/10 "2022-03-19T16:21:13Z")

</div>

Ok, I don’t have the answer, but i’m unlocking.

Thank you very much !!! 🙂

---

<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: [March 19, 2022, 4:24pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/11 "2022-03-19T16:24:43Z")

</div>

> [@delphine\_bellante](#):
>
> template: BSR-template

Note that this should be all lowercase

```auto
template: bsr-template

```

---

<div class="post-metadata">

### Author: ![delphine\_bellante](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/delphine_bellante/32/11646_2.png) [@delphine\_bellante](https://forum.getkirby.com/u/delphine_bellante)
#### Post date: [March 19, 2022, 4:46pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/12 "2022-03-19T16:46:11Z")

</div>

I don’t understand, I change this line because you are right, I don’t have a blueprint to costumize the page and i have again zero page in my panel .  
But in my folder, the are 3 pages

 ![Capture d’écran 2022-03-19 à 16.25.22](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/e/e55743c29aa5061baa2de0ed295316bb29ac1795.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: [March 19, 2022, 4:57pm UTC](https://forum.getkirby.com/t/problem-panel-control/25035/13 "2022-03-19T16:57:03Z")

</div>

> [@delphine\_bellante](#):
>
> But in my folder, the are 3 pages

Could you please post your content structure, so that I can see all folders and files inside the `content` folder?
