If your WordPress self-hosted site does not get added to Publer due to an error with credentials, even though they are correct, then the issue lies elsewhere.

If you get "Incorrect Credentials" or "Permissions" error but they are correct:

Either you are not using the email that is connected to your respective WordPress account.
Not all the endpoints are accessible by the Rest API.

In that case, you have to speak to a developer, or try the following, in order to make sure that the endpoints are accessible.

Trigger API call from Publer - get error
Go to WP admin, check error logs.
In error logs search for [id "12345"] of the rule
Edit .htaccess and add at the beginning (rule bypass)

<IfModule mod_security.c>
  SecRuleRemoveById 12345
</IfModule>


The endpoints that we call are categories, tags, comments, posts, and media. More specifically, the following are all the endpoints that we call:

GET /categories?number=1000&_fields=id,name
GET /tags?number=1000&_fields=id,name
GET /comments
POST /comments
DELETE /comments/#{comment_id}
GET /media
POST /posts
GET /posts
DELETE /posts/#{post_id}
POST /posts/#{post_id}

After that, you will be able to add the WordPress site to Publer normally.
Was this article helpful?
Cancel
Thank you!