• Resolved ritikarawlani

    (@ritikarawlani)


    Hey,

    I am trying to use this plug-in in a localhost environment with a developer org of Salesforce. I am getting the “error 0:” on hitting Connect to Salesforce. I went through the forum posts and here are my observations:

    On hitting connect to Salesforce: It does redirect to the correct Salesforce Org and comes back to WP settings with error 0

    No errors on php_error.log

    In my database I do have the relevant tables created but I do not have the object_sync_for_salesforce_refresh_token under wp_options. How can I correct this?

    No errors in JS in console logs

    I notice that the callback URL says it Must be Https, but since I am running the WP site on localhost it is setup on HTTP and not HTTPS. Is that a barrier? If so, how can I change my WordPress site to work on Https?

    Many thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    This plugin will definitely not work without HTTPS. There are lots of ways of doing HTTPS in localhost. I don’t provide support for any of those, but my personal favorite is Laravel Valet. You won’t be able to create a refresh token value in the wp_options, because that comes directly from Salesforce after a successful authentication.

    I have seen users get error 0 as a return value from Salesforce at other times, but usually it is one of the following reasons:

    1. One or more of the settings doesn’t match what Salesforce expects
    2. The SSL is incorrect (hopefully this is the only issue you’re having)
    3. Sometimes it can happen if the Salesforce app has not been live long enough; it can take a few minutes before it is accessible.

    Unfortunately Salesforce doesn’t return any other data when this error happens, so there’s not much else I can offer. But hopefully you’ll find it’s only the SSL issue.

Viewing 1 replies (of 1 total)

The topic ‘Authentication Error 0:’ is closed to new replies.