MenuManager

A plugin to enable management of menus within October CMS

Back to MenuManager Support

felagund184189
felagund184189

October Build 230 When moving menu item (as sub), throws an error "A node cannot be moved to a descendant of itself." on line 923 of ~vendor\october\rain\src\Database\Traits\NestedTree.php how can i fix it???

benfreke
benfreke

Not sure yet, it appears that the way to use the NestedSet trait has changed. Will push a fix asap, as this will break every install :(

Very frustrating

felagund184189
felagund184189

vendor\october\rain\src\Database\Traits\NestedTree.php
Line 817: // if (!$this->validateMove($this, $target, $position)) Line 818: // return $this;

i set these lines commented and then suddenly worked :)

Last updated

DarkDarin
DarkDarin

In the model add event beforeCreate():
public function beforeCreate() { $this->setDefaultLeftAndRight(); }

Last updated

Shahiem
Shahiem

DarkDarin said:

In the model add event beforeCreate():
public function beforeCreate() { $this->setDefaultLeftAndRight(); }

Thank you, you are a hero! :)

micwanyoike5462
micwanyoike5462

None of the above methods have worked for me...

bob_smith
bob_smith

The same here! Is there a way to workaround this issue? Neither of methods described above work (last two builds of cms). Thank you!

Last updated

benfreke
benfreke

I've not been able to repeat this today. Is this still an issue?

1-8 of 8