This is the route for the request:
[
'pattern' => 'pages/(:any)/status',
'method' => 'PATCH',
'action' => function (string $id) {
return $this->page($id)->changeStatus($this->requestBody('status'), $this->requestBody('position'));
}
],
But the request method used is a GET
request while the route only accepts a PATCH
request. To me that is a strong indication that PATCH
requests are not possible on your server?
The same is true for updates, they also use the PATCH
method.
Maybe you can try the solution suggested here: After published, can't edit and logout
If not, I’d contact the hosting service.