# Kirby builder: Cannot use a scalar value as an array

**URL:** <https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887>\
**Category:** Questions\
**Tags:** v3\
**Created:** [April 23, 2019, 9:31am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887 "2019-04-23T09:31:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [April 23, 2019, 9:31am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/1 "2019-04-23T09:31:43Z")

</div>

I tried to integrate the kirby-builder plugin, but during page creation it gives my this error

`Cannot use a scalar value as an array`

Any advice for this issue?

---

<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:** [April 23, 2019, 9:37am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/2 "2019-04-23T09:37:04Z")

</div>

Could you please provide more information? Where does the error appear, in the Panel or on the frontend?

Panel: please post blueprint  
Frontend: please post code

Is there a stack trace for the error?

Also, which versions of builder and Kirby?

---

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [April 23, 2019, 9:39am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/3 "2019-04-23T09:39:35Z")

</div>

I used the given example from the builder repo. The error appears in the backend when I try to create a page.

```auto
title: Builder
icon: 📝
preset: page

fields:
  mybuilder:
  label: Page Builder
  type: builder
  columns: 1
  max: 10
  fieldsets:
    quote:
      label: Quote
      preview:
        snippet: blocks/quote
        css: /assets/css/blocks/quote.css
      fields:
        text:
          label: Quote Text
          type: textarea
        citation:
          label: Citation
          type: text
    bodytext:
      label: Text
      tabs:
        content:
          label: Content
          icon: edit
          fields:
            text:
              label: text
              type: textarea
        style:
          label: Style
          icon: cog
          fields:
            fontfamily:
              label: Font
              type: select
              options:
                helvetica: Helvetica
                comicsans: Comic Sans
            fontsize:
              label: Font Size
              type: number
    events:
      label: Events
      preview:
        snippet: blocks/events
        css: /assets/css/blocks/events.css
      fields:
        eventlist:
          type: builder
          label: Event List
          columns: 2
          fieldsets:
            event:
              label: Event
              fields:
                title:
                  label: Title
                  type: text
                text:
                  label: Description
                  type: textarea
                date:
                  label: Date
                  type: date
    calltoaction:
      extends: blocks/calltoaction
```

---

<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:** [April 23, 2019, 9:47am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/4 "2019-04-23T09:47:48Z")

</div>

Looks like it’s caused by these two settings:

```auto
columns: 1
max: 10

```

---

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [April 23, 2019, 9:50am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/5 "2019-04-23T09:50:02Z")

</div>

You are right. The page can be created when I remove those lines.  
Thank you for your help 🙂

---

<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:** [April 23, 2019, 9:51am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/6 "2019-04-23T09:51:43Z")

</div>

It’s not really a solution but a workaround. Not sure if that’s a bug in the plugin or somewhere else.

---

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [April 23, 2019, 9:54am UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/7 "2019-04-23T09:54:36Z")

</div>

I’m opening an issue for the builder. Maybe the author knows what has happened.

---

<div class="post-metadata">

**Author:** ![luxuryluke](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/luxuryluke/32/3701_2.png) [@luxuryluke](https://forum.getkirby.com/u/luxuryluke)\
**Post date:** [June 28, 2019, 7:59pm UTC](https://forum.getkirby.com/t/kirby-builder-cannot-use-a-scalar-value-as-an-array/13887/8 "2019-06-28T19:59:45Z")

</div>

I just saw an error like this yesterday when editing blueprints. I found my error.  
But, perhaps a more descriptive error message would help.
