# Error creating more than 1 subpage - Subpage builder

**URL:** <https://forum.getkirby.com/t/error-creating-more-than-1-subpage-subpage-builder/34292>\
**Category:** Questions\
**Tags:** v4\
**Created:** [June 23, 2025, 2:58pm UTC](https://forum.getkirby.com/t/error-creating-more-than-1-subpage-subpage-builder/34292 "2025-06-23T14:58:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiahr](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kiahr/32/7169_2.png) [@kiahr](https://forum.getkirby.com/u/kiahr)\
**Post date:** [June 23, 2025, 2:58pm UTC](https://forum.getkirby.com/t/error-creating-more-than-1-subpage-subpage-builder/34292/1 "2025-06-23T14:58:15Z")

</div>

Hello, I am using the [Subpage cookbook example](https://getkirby.com/docs/cookbook/content-structure/subpage-builder).

The issue I am having is that only the “Gracias” subpage is being created automatically, not the “Cotizar”. The lugin is identical to the example, and the blueprints do exist.

My page template is:

```auto
title: Proyecto
options:
  move:
    - proyectos

subpage_builder:
  - title: Gracias
    uid: gracias
    template: gracias
    num: 1
  - title: Cotizar
    uid: cotizar
    template: cotizar
    num: 2

```

I have tried swapping the order, and when I do that “Cotizar” is created, but not “Gracias”.

How could I start debugging this?

Thanks!

---

<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:** [June 23, 2025, 3:40pm UTC](https://forum.getkirby.com/t/error-creating-more-than-1-subpage-subpage-builder/34292/2 "2025-06-23T15:40:57Z")

</div>

In the `buildPageTree()` function, try replacing `changeSort()` with `changeNum()`, maybe it exits there because the method does not exist anymore. Just a guess, if that doesn’t help, it needs some more debugging. Wrapping that part with the subpage publishing in a try/catch block might also help.
