grav-plugin-flex-objects icon indicating copy to clipboard operation
grav-plugin-flex-objects copied to clipboard

Error 'Cannot move folder to itself' while changing folder name

Open awrog opened this issue 3 years ago • 7 comments

GRAV: v1.7.16 Flex objects: v1.0.14 I want to change the folder name of a page. I get an error: 'Cannot move folder to itself' (the foldername as absolutely unique)

Cannot-move-folder-to-itself

awrog avatar Jun 08 '21 12:06 awrog

Make sure that the parent doesn't have 2 copies with the same slug.

mahagr avatar Jun 08 '21 13:06 mahagr

Thanks Matias, unfortunately this is not the case, see gif

Fresh example:

Failed to save entry: Flex saveRow(12.testpage/01.page123|docs.nl): Flex moveFolder(user/pages/12.testpage/01.page1, user/pages/12.testpage/01.page123): Cannot move folder to itself

Also with GRAV: v1.7.15 Flex Objects v1.0.11 PHP: PHP Version 7.3.24

Cannot-move-folder-to-itself-demo

awrog avatar Jun 08 '21 14:06 awrog

Thanks, that one helps a lot. Seems to be an issue with multi-lang

mahagr avatar Jun 08 '21 15:06 mahagr

The problem also occurs when I disable flex-objects plugin. With flex-objects activated, there is no problem when I rename the page via 'Auto-regenerate based on page title'.

awrog avatar Jun 21 '21 13:06 awrog

I have the same issue. Same versions of Grav and FlexObjects. However, using in English. All plugins:

Admin Panel v1.10.16 Update available! Archives v2.0.2 Email v3.1.2 Error v1.7.1 Flex Objects v1.0.14 Update available! Form v5.0.2 Update available! Login v3.4.3 Update available! Markdown Notices v1.1.0 Pagination v1.4.2 Problems v2.1.1

johnsgp avatar Jul 08 '21 22:07 johnsgp

After upgrading everything, the problem continues. Grav is now 1.7.17 and the upgrades were:

  1. Admin Panel [v1.10.16 -> v1.10.17]
  2. Flex Objects [v1.0.14 -> v1.0.15]
  3. Form [v5.0.2 -> v5.0.3]
  4. Login [v3.4.3 -> v3.4.4]

johnsgp avatar Jul 08 '21 22:07 johnsgp

One more bit of information - this happens on Windows 10 and Ubuntu 20.04

johnsgp avatar Jul 08 '21 22:07 johnsgp