# Error 422 when reordering categories

**URL:** <https://meta.discourse.org/t/error-422-when-reordering-categories/270056>\
**Category:** Product Support\
**Created:** [June 29, 2023, 5:07pm UTC](https://meta.discourse.org/t/error-422-when-reordering-categories/270056 "2023-06-29T17:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Christina](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@Christina](https://meta.discourse.org/u/Christina)\
**Post date:** [June 29, 2023, 5:07pm UTC](https://meta.discourse.org/t/error-422-when-reordering-categories/270056/1 "2023-06-29T17:07:47Z")

</div>

Good morning,

Discourse version 3.1.0.beta4  
I’m trying to reorder the categories from the UI and when I press save order I get a 422 error. Interesting fact: my categories on the main Discourse page doesn’t have the same order on the reorder categories page.  
Example : I have the supervisor category at position 4 on my main page, on the other hand when I go on the reorder categories page, the supervisor category is not at position 4, but at position 23 and if I press on save , it will go to position 23 as shown in the reorder categories page. I have the 422 error that appears, but there are still changes that have taken place.  
Last week I had no problems with the reorganization, I only had this problem when I moved the new category my script created today to the first position.  
In the preview page of Chrome I have a little more details about the error:  
The change you wanted was rejected. Maybe you tried to change something you didn’t have access to.

 ![preview error](https://global.discourse-cdn.com/meta/original/4X/6/e/c/6ecf986cc46b399eb9674fa420c4342747544153.png)

I’m admin, so I shouldn’t get this error.  
In the source code I have this exception that throws :  
SyntaxError: Unexpected token ‘\<’ "\<!DOCTYPE "… is not a valid JSON

 ![error in code](https://global.discourse-cdn.com/meta/original/4X/d/c/2/dc2107c7c73f9aeea8419a2c5cff9cc2ef86af5a.png)

I’ve:  
Done a server reboot  
Enabled Allow Uncategorized Topic option

Do you have an idea what I could do ?

---

_[View the full topic](https://meta.discourse.org/t/error-422-when-reordering-categories/270056)._
