Error creating more than 1 subpage - Subpage builder

Hello, I am using the Subpage cookbook example.

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:

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!

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.