• Resolved perties

    (@perties)


    I installed it on 2 websites – the secondary site shows error “Error checking API credentials” when Check credentials and primary “Credentials are correct but Stock Sync plugin is not installed on the other site.” I tried to reinstall it but it did not help. What shell I do? Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter perties

    (@perties)

    I forgot to add: I am pretty sure that the setting is correct.

    Thread Starter perties

    (@perties)

    Any solution?

    I got the same issue. When checking the credentials the pages say this:

    Page A: “Credentials are correct but Stock Sync plugin is not installed on the other site.”

    Page B: “Valid credentials”

    Product sync fine from B to A. But not from A to B.

    Plugin Author WP Trio

    (@wooelements)

    If Stock Sync is installed on both sites and it still states that it’s not installed on the other site, it can be caused by permalink settings (WordPress admin > Settings > Permalinks). At least Plain has caused issues so please try something else if you have that one selected.

    Thread Starter perties

    (@perties)

    This is probably not it. Both sites have it set “post name” and one works and the other not.

    Plugin Author WP Trio

    (@wooelements)

    Thanks for checking!

    Basically the plugin visits https://yoursite.com/wp-json/wc/v2/stock-sync-exists and if that returns 404, it assumes Stock Sync is not installed as the plugin defines that endpoint. If the endpoint returns 401 (access denied without API credentials) or 200 (access OK, you have provided credentials) then the check is OK.

    Here’s how it should look if it works: https://wooelements.com/wp-content/uploads/2021/04/stock-sync-works.png

    And like this if it doesn’t: https://wooelements.com/wp-content/uploads/2021/04/stock-sync-error.png

    Another reason for the 404 issue might be multilingual plugins such as WPML or Polylang which might alter URL structure. For example, there might be a language code before /wp-json in which case you will need to add the language code to the URL.

    Plugin Author WP Trio

    (@wooelements)

    Closing this now due to inactivity but please re-open if the issue persists.

    Thread Starter perties

    (@perties)

    This is still not working for me. I am getting Unknown Error when trying to sync.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Errors’ is closed to new replies.