Error while using WordPress API.
-
Hi,
I’m getting this error while trying to post to the wordpress API:
Error creating post: <head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>I’ve tried to modify the .htaccess already to disable the mod_security.c with no luck. This is what I’ve put in the .htaccess:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>I’ve also tried to put this in there:
<IfModule mod_rewrite.c>
RewriteEngine On RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>I also have user-agent and content-type in the post. I’ve also tried to use different titles and texts.
WP.com: Unknown
Jetpack: Yes
Correct account: UnknownThe blog I need help with is: (visible only to moderators and staff)
-
Hello, this is a WordPress.com forum and apparently your site is not hosted here but using the open-source version of the WordPress software at another hosting provider.
Therefore you can ask for support, directly from them or you can also ask at the WordPress.org forum:
https://wordpress.org/support/forums/If you want to know more about their differences, here is a little more information:
https://wordpress.com/support/com-vs-org/
Good luck!
- The topic ‘Error while using WordPress API.’ is closed to new replies.