Muut
August 31, 2015, 3:56pm
1
Hi, I Was just trying out grav as well as the new admin plugin. I can’t seem to get the preview of the page editor to work. I edit a page, e.g. I’m at http://localhost:8000/admin/pages/test and when I click the ‘eye’ button in the editor, chrome devtool tells me that http://localhost:8000/admin/media/test.json/task:processmarkdown returns a 404 and the page shows me a red error panel.
I’m using php’s built in web server. Everything else in grav seems to working, in case you suspect some url rewrite issue.
Muut
August 31, 2015, 5:50pm
2
Please read this note regarding the PHP built-in webserver - It doesn’t have the routing capabilities needed to support the admin plugin. You will need a proper webserver that has configurable routing support.
Muut
August 31, 2015, 5:51pm
3
Just to be specific, the built in php webserver can’t handle the :
in the URI. It doesn’t parse this properly, so any place we use these in URLs it will choke, hence the list of plugins that use that, and therefore don’t work.
Muut
August 31, 2015, 6:22pm
4
Ah, missed that. Thanks for the explanation!