Authentication Errors with WPSiteSync

Have you been getting the message “Unable to authenticate on Target site.” when attempting to Push Content from your Source site to your Target site? There are a couple of things that can make this occur.

The first possibility is that you’ve recently migrated the contents of your Source site to your Target site. This replaces all of the database tables on the Target site with those on the Source. Since WPSiteSync stores some API tokens in the database, this effectively removes the authentication information that was stored when you configured WPSiteSync with your Target site. To keep this from happening in the future, you can exclude the following tables from your migration process:


Another possible cause is removing the user account that WPSiteSync was configured with on the Target. If the user no longer exists, WPSiteSync cannot authenticate the update on the Target because it always validates any content updates using the configured user’s permissions. No user means no permissions.

Resolving the Issue:

Most of the time this issue can be resolved by re-authenticating your Source site with the Target site. This is done by going to the Settings -> WPSiteSync Configuration page and re-entering the Username and Password for the user on the Target site. After doing this, you can edit a Post or Page and Push the Contents to your Target site.

If this does not resolve the issue you can use the following steps:

On Target, do the following:
1. Go to your Settings -> WPSiteSync Configuration page.
2. Find the Radio button for the “Optionally remove Settings and Tables on plugin deactivation:” setting and select the “Yes, remove all settings and data on uninstall.” option.
3. Save the Configuration settings.
4. Go to the Installed Plugins page.
5. Find the WPSiteSync plugin and click on the “Deactivate” link. This will turn WPSiteSync off.
6. Next, find the WPSiteSync plugin again and click on the “Delete” link. This will completely remove WPSiteSync, it’s configuration settings and database tables.
7. Go to the Plugins -> Add New page and search for “WPSiteSync”. This will display the WPSiteSync plugin information. From here you can click on the “Install” button and then the “Activate” button to install and activate the plugin.
On the Source, do the following:
8. Go to the Settings -> WPSiteSync page. Here, you can re-enter the Username and Password for the Target.
9. Click on the “Save Changes” button to save the changes you just made. You should now see a green checkmark next to the Password entry field indicating that the user credentials were correctly saved.

This process might seem a bit complicated, but it essentially removes the WPSiteSync database tables that were migrated from your Source site to the Target site and recreates the authentication token that WPSiteSync requires on the Target site in order for the API requests to work correctly.

Once this is done, you can use the “Push to Target” button to Push your Post or Page to your Target site.

If this does not resolve the problem, feel free to contact us via our help page. We’re ready to help you and make sure you can use the product successfully