Publishing or uploading failed. Error message: “The response is not a valid JSON response”
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.
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
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.