Error and deletion of content on moving pages

Hello, I think I am facing something similar to this question: Error on moving pages, same positions assigned

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 and the problem persists.

Before running all these tests, I also made sure there were no duplicate position numbers in the folder names.

It feels like there is some kind of corrupt file. What woyld be the best way to search for that? Site has 100 pages.

Currently running the latest Kirby version. Thanks anybody who may have an insight!

Have you ever created any of the pages manually and they accidentally are not writable?

Are the pages very image-heavy with large files?

Is that 100 pages in one folder, or the site altogether?

When doing such reordering, Kirby has to rename every single folder in the tree, so in some environments this might not perform well.

Hi @texnixe,

Thanks for your reply. Interestingly, no pages had been created manually however upon closer inspection there were a couple duplicated slugs that were causing the problem.

Answering your other questions, the 100 pages are in one folder and the pages are moderately heavy (about 2mb each).

Interesting, wonder where those are coming from, i.e. if they are the result of the reordering issue or really the cause.