Rearranging/nesting categories with taylor, 'a node cannot be moved to a descendant of itself

I created categories with tailor, and added a maxDepth of 3. when I try to rearrange them, eg. make a category a subcategory of anther, I keep getting

"A node cannot be moved to a descendant of itself." on line 930 of C:\Users\Michalis\Desktop\code\knowledge_base\vendor\october\rain\src\Database\Traits\NestedTree.php

but the category is not a descendant of anyone, I feel like I might be doing something wrong

This was fixed recently. Try this:

  • Make sure you are running v3.0.60 or above
  • Change the blueprint type to entry
  • Perform a migration with october:migrate
  • Change type back to structure
  • Migrate again

That should add the necessary data to make the sorting work.

having trouble updateing, I get this error (I am using git bash)

> System\Console\ComposerScript::postAutoloadDump
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
90 packages you are using are looking for funding.
Use the `composer fund` command to find out more! 
> System\Console\ComposerScript::postUpdateCmd
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Executing: php artisan october:migrate

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
                                                                                                                        
 [ERROR] Migration failed. Check output above

this is when I run october:update

Seems like you’re having some issues with the environment there. Can’t say why it’s doing that without some more information on how your stuff is setup.

In Windows, try using Terminal, Powershell or Cmder to run these commands. Command Prompt has limited compatibility with artisan commands.

edit: I think I see the issue, its because PHP is in a folder with a space in it. We can fix this in the next patch release.

there was no space in the php folder

I switched from php 8.1.5 to php 8.1.0 and it worked