Please follow the below steps when you get the above error. You will get this error When you try to publish a post or create a new page in the wordpress site.
- Go to settings>permalinks. Select “Post name” and save. Try updating your posts/pages. If it doesnot work, try selecting another option in the settings>permalinks.
- If the 1st step doesn’t work then install the classic editor plugin. This should solve the issue. If it doesn’t work then goto the third step.
- Goto your apache config file(mydomain.conf) and add the below lines.
Require all granted
Note:- Replace /var/www/html with your document root.
If the issue is not resolved after following the above three steps then we need to debug further.