Have a strange situation. I have some bugs or issues. And canât find the reason for it.
I have a template type âreviewâ. And some times when I update reviews for some unknown reason Kirby creates duplicate pages (in same-name folders but with different template types it creates a default template with empty content it only uses the name for creating this page) and of course, this takes issues on the frontend. in all loops and snippets, Kirby starts to use these pages instead of using original pages.
Ah, I misunderstood the problem. I thought it created a default.en-au.txt inside of the same folder, but itâs actually creating copies of the folder.
I donât know whatâs happening, it shouldnât be possible to have multiple pages with the same name.
Do you have any plugins or hooks installed / configured?
Also what Kirby version is this?
this issue starts happening after updating kirby to 4 version.
Sure I have some plugins. but itâs very hard to detect which plugin could appear to this problem.
Letâs see⌠Maybe new fresh ideas will be written here. Or I will find a solution myself and also write feedback here.
I wonder if something is duplicating those pages at a lower, file-system level for some reason. But normally, if you try to create a page with the same slug, Kirby will complain. Did you update to the latest version 4.2.0 or to another 4.x version? Did you update all plugins as well? Which ones are installed?
Just brain dumping here. It looks like thereâs some code that dynamically changes the page sorting number, but does so in an unexpected moment (so that Kirby doesnât, or is unable to, rename the original folder). Kirby at some point then sees that âthe root doesnât existâ and therefore creates it, maybe to write the UUID or something. The content storage refactor of Kirby 4 could have triggered this.
So Iâd look for code that could have an effect on the page root: