processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

3.0.183: Cant add new users with multiple templates (Template::noMove)

Open cb2004 opened this issue 4 years ago • 5 comments

After upgrading to 3.0.183 I now cant add a new user in my page tree because of an error:

Can’t save page 2199: /PARENT/untitled-page-4/: Page using template “USERTEMPLATE” is not moveable. (Template::noMove) [/ADMINFOLDER/access/users/ => /PARENT/]

This hook may come into play which we use to get around having to add name:

$wire->addHookAfter('Pages::added(template=74)', function(HookEvent $e) { $member = $this->users->get($e->arguments(0)->id); $member->addRole(1150); $member->save(); });

We go around this by switching advanced mode on and allowing the template to be moved. Now this may not be a bug and may be a new requirement, but if you follow the steps here:

https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users

As soon as you clone the user template, it is going to come with the no move option checked.

Any thoughts?

cb2004 avatar Aug 17 '21 16:08 cb2004

Now this may not be a bug and may be a new requirement, but if you follow the steps here: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users

I'm a bit confused - if I understand you correctly, it's always been a requirement:

On the Advanced tab, uncheck the box that says "Don't allow pages to change their template?".

Am I missing something?

adrianbj avatar Aug 17 '21 16:08 adrianbj

In my scenario I don't want them to change the template or let the page be moved, and it wasn't an issue before.

cb2004 avatar Aug 17 '21 17:08 cb2004

I also keep the system tab disabled. It seems as though its just the checkbox for allowing the page to be moved which is having an impact all of a sudden.

cb2004 avatar Aug 17 '21 17:08 cb2004

From the end of this, I just want peace of mind that users with multiple templates works when I upgrade a site as it is a huge reason why I use ProcessWire, I build so many websites with it. I want to switch advanced mode on and set things up how I would like without there being any issues. I know there have been some attempts at fixing things around this area so I have kept an eye on it as a beta tester so to speak and have been testing it more than other areas so I am sure this part of the system will become error free the more we use it.

cb2004 avatar Aug 17 '21 20:08 cb2004

Sorry all, looking back at this I have realised that the steps to take are actually on the user template before it is cloned meaning that the new user template will carry over the same settings. I have never taken any notice to this as its not what I require, so lets tag this up as discussion. In every case I have used this, I don't want people to change the template or move the page for the user templates I create. ProcessWire has always been amazing at not making assumptions but I think this is a case where it does.

cb2004 avatar Aug 17 '21 21:08 cb2004