Hi Dee,
This was using the backoffice to sort child nodes, I have tracked the bug and put a note into the bug forum, however I will post it here as well.
I have code that stops a user from deleting required nodes, while allowing child nodes to be removed.
As soon as I got this error I put breakpoints in my code and checked to see if this was being hit. It was not. I also commented out my code, rebuilt and tried it again, still no luck.
It was not until I did a full reboot and started it again later, then my breakpoints were getting hit all of a sudden when I sorted, so I stepped through that and allowed them to be saved (I don't want duplicate nodes either for these), and hey presto it works.
So I suspect somehow it was caching my node delete prevention code, so my breakpoints were not being hit, but the code was interfering with the sort (as it tried to stop someone saving a second node).
Thanks for the reply Dee, only got it 20 minutes ago.
Umbraco 8 sorting children fails
Hi, getting a wierd one here, sort the children of a siteroot just doesn't work, it comes up with a "Failed to sort content" message . In the js it seems to get a bad request (400) when sending to https://localhost:44304/umbraco/backoffice/UmbracoApi/Content/PostSort
in the response it says
unexpected character at line 1 column1 of the json.
On looking at the request response it is
Which seems to me to be correct.
Any ideas guys?
Hey Damien,
please share your code. How are you trying to achieve the content sort?
Dee
Hi Dee, This was using the backoffice to sort child nodes, I have tracked the bug and put a note into the bug forum, however I will post it here as well.
I have code that stops a user from deleting required nodes, while allowing child nodes to be removed.
As soon as I got this error I put breakpoints in my code and checked to see if this was being hit. It was not. I also commented out my code, rebuilt and tried it again, still no luck.
It was not until I did a full reboot and started it again later, then my breakpoints were getting hit all of a sudden when I sorted, so I stepped through that and allowed them to be saved (I don't want duplicate nodes either for these), and hey presto it works.
So I suspect somehow it was caching my node delete prevention code, so my breakpoints were not being hit, but the code was interfering with the sort (as it tried to stop someone saving a second node).
Thanks for the reply Dee, only got it 20 minutes ago.
Nice!
is working on a reply...