MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
93 stars 48 forks source link

Authorise button links to Setting tab an doesn't' connect to Salesforce account #532

Open elliewhittaker opened 2 months ago

elliewhittaker commented 2 months ago

Describe the bug Salesforce object sync plugin settings have been applied correctly for the live version. When we click to authorise and link to the correct Salesforce account we are taken back to the settings tab and not connected to Salesforce at all. This has happened with multiple people testing it.

To Reproduce See video

https://github.com/MinnPost/object-sync-for-salesforce/assets/71439660/0b9e7ec6-9375-45d2-8807-ba80e54d57b5

Expected behavior We want to link to Salesforce to finalise the integration.

Screenshots

Environment (please complete the following information):

jonathanstegall commented 2 months ago

Nobody is currently working on this plugin, but here's my advice:

boblodi commented 1 month ago

I am having the same problem. I get "error=invalid_client_id&error_description=client%20identifier%20invalid" no matter how long i wait, either by setting a timer or waiting overnight. I have tried different apps, different app names, different settings, different secret keys, and i cannot get it to authenticate this whole week.

jonathanstegall commented 1 month ago

@boblodi that is a very different problem than the original post. It suggests that something is wrong with your Salesforce app. You might be using the wrong base URL (for example, you might be using production instead of sandbox, or vice versa), or one of the credentials is entered incorrectly. But in any case, it's not the same error code as reported initially (something about a missing required value), so it's likely that what you're seeing is not caused by the same problem.

boblodi commented 1 month ago

OK - thanks Jonathan. I didn’t read the error well enough then. I just know it’s been days of fussing with it without any authentication.

Rock Pixel Scissors www.rockpixelscissors.com 508-380-7213

On May 17, 2024, at 10:16 PM, Jonathan Stegall @.***> wrote:

@boblodi https://github.com/boblodi that is a very different problem than the original post. It suggests that something is wrong with your Salesforce app. You might be using the wrong base URL (for example, you might be using production instead of sandbox, or vice versa), or one of the credentials is entered incorrectly. But in any case, it's not the same error code as reported initially (something about a missing required value), so it's likely that what you're seeing is not caused by the same problem.

— Reply to this email directly, view it on GitHub https://github.com/MinnPost/object-sync-for-salesforce/issues/532#issuecomment-2118601899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUHOLBRWK6YG7RSOYF6STZC22X7AVCNFSM6AAAAABGHUCTSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGYYDCOBZHE. You are receiving this because you were mentioned.

tazar003 commented 1 month ago

I am actually having a similar issue, but probably with more factors. I am using WPFusion and it's not honoring the existing connection that is setup. So I disable the setting in Fusion "Use WP Fusion's credentials to authorize Object Sync for Salesforce." I setup the new app and enter all the details as I have in other sites. When I click authorize I am getting this URL

/wp-admin/options-general.php?page=object-sync-salesforce-admin&error_description=missing+required+code+challenge

Plugins: BuddyBoss, WPFusion, MiniOrange SAML2.0. (Tried deactivating all plugins)

PHP: 8.3 (Also tried 8.1 and 8.2) Error on screen: Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /www/ntlhub_725/public/wp-content/plugins/object-sync-for-salesforce/classes/class-object-sync-sf-admin.php on line 2677

Fix:
For the Login Base URL I was using 'login.salesforce.com' I switched this to https://****.my.salesforce.com/

Once I updated this, I was able to authorize and connect.