Every time I try to change the position of a page, an error in the panel appears.
Starting with this structure without position duplicates:
Ending up with a duplicate because the element I moved take over the poisiton of the page where I move it too without the other page folder being renamed.
But still after cleaning up that folder, the error still appears and creates duplicates of position. I have no idea how I can debug this to find out what causes this.
I had a similar issue; it was driven by manually amending pages. The way I corrected it was - to remove pages 20 and 22 and then create them again. For some reason, I got caught in a loop of getting Kirby to duplicate page numbers. That may not be the reason for your issue, but it may resolve it.
Hi @renestalder, I was wondering if you were able to resolve your issue. I think I am facing something similar.
I get the “Page directory cannot be moved” error when trying to manually reorder the pages in the panel and also when changing the status of pages.
Position duplicates are created by the system. Interestingly, sometimes the system will also randomly delete the img contents and field contents (plus the field names themselves) from a page folder when trying to reorder too.
The problem began on a live server, so I I removed all plugins, upped the execution time and memory limit and cleared the browser cache, deleted the media folder, the cache and the sessions folder too. This did not solve the issue though. I downloaded content folder and the problem persists locally too. I tested with a fresh plainkit too.
Before running all these tests, I also made sure there were no duplicate position numbers in the folder names.
Currently running the latest Kirby version. Thanks anybody who may have an insight!
I’m also experiencing this issue on one of my clients sites. Duplicate page folders are being added when pages are reordered. They have about 24 pages total and are content heavy which I think is making the reordering process slower than expected. It takes sometimes up to 4sec to get the green tick in the bottom right hand corner.
From my own testing, I’ve been able to replicate the bug, which as far as I can tell happens when a reordering action is started and then interrupted by a page refresh (maybe page change too?), which resulted in the presence of the duplicate folders.
It feels like this could be solved via improved UI as while the reorder process is ongoing the list shows no waiting state, it is just unresponsive to any mouse events so nothing to indicate that anything is happening. Maybe also a warning if you try to refresh/leave page?