I’m getting a weird error when creating a new draft, another folder called “new” is also created automatically.
This is how it looks, I created a draft called “Telephony in Ansbach” and the draft called “new” was created with it. Is this a known issue and is there a workaround?
I’ve been running into the same issue a while back. It was caused by a custom fields value() method calling $page->uuid() too early. Your problem might be different though.
In versions prior to 4.5.0 Kirby would also re-use the uuid assigned to the new page for the page that was created. So you might want to check for duplicate pages with the same Uuid as the new page. Script below for scanning the complete content folder
Here’s a bodge of a php script i wrote while trying to find the duplicated uuids. Save it to something like findDuplicateUuids.php and run it via terminal, passing the path of your content directory as first parameter. Please create a backup before running this.