phpsword / sword-bundle

Modern WordPress development with Symfony
https://getsword.com
MIT License
125 stars 4 forks source link

404 editing a post #8

Closed lucaspouchot closed 1 year ago

lucaspouchot commented 1 year ago

Hi, On a from scratch installation, I cannot update a Wordpress post, I got 404.

image

williarin commented 1 year ago

Indeed I can reproduced the problem, thank you for finding this issue. The problem goes away if you change the permalink structure in Settings/Permalinks.

I believe it's an nginx configuration issue, I'll look into it.

williarin commented 1 year ago

To fix this, remove the internal line in nginx config in ./docker/nginx/conf.d/default.conf and rebuild your nginx container.

https://github.com/phpsword/sword-bundle/blob/ea77394665ba973efafc5e33b9eb97aec1abe1cf/install/docker/nginx/conf.d/default.conf#L27

I'll make a PR soon but that will only impact new projects.