I’m using a blueprint that has an option num as follows:
num: '{{ page.publication_date.toDate("Ymd") }}'
In my local dev environment, this works perfectly when I change the status of a page to “listed”; a prefix (e.g. “20231023_”) is added to the folder as expected.
However, when I do this on the production server, I’m getting following error in the panel:
Error: array_merge(): Argument #2 must be of type array, bool given
FYI: changing the status of that page to Unlisted works perfectly. This made me believe it has something to do with the num option in the page’s blueprint. When disabling the num option in the blueprint, I’m able to make that page “Listed”, but I need it to be sorted via the publication_date field.
require_once returns true when it already read the file before.
Kirby for some reason reads that config twice probably, and the second time it doesn’t get the route but just a true. You would probably want to replace that with a normal require or include.
I do wonder why config.php gets loaded twice…
But changing all require_once to require inside config.pbp doesn’t seem to have side effects and seem to fix this issue.