woocommerce-salesforce-integration icon indicating copy to clipboard operation
woocommerce-salesforce-integration copied to clipboard

Missing manage relations form

Open code2prog opened this issue 7 years ago • 9 comments

Latest wordpress and latest WooCommerce-Salesforce-integration plugin.

The application is connected to Salesforce, but the relationship management form does not appear.

code2prog avatar Jul 20 '18 18:07 code2prog

@code2prog do you have any entry in the error log?

matejbasic avatar Jul 20 '18 18:07 matejbasic

@matejbasic I do not see any errors in the php logs and the JS console in the browser 2018-07-20_19-48-40

code2prog avatar Jul 20 '18 18:07 code2prog

@matejbasic I'm seeing a similar situation; signed up for Salesforce, have latest WP, have WC 3.3.x; after setting up the latest version of the WC-Salesforce-integration plugin, activating it, setting up the Salesforce app (and waiting), and then doing the initial connection, I get redirected back to the settings page with no relationships showing. No error message that I saw either. What's a good way to debug this please? This plugin looks great, hoping to actually enjoy it soon, thanks!

limist avatar Aug 25 '18 06:08 limist

Update: tried everything again, making a new Salesforce App, entering the new Consumer key and secret, granting approval again; initially I saw the same behavior: redirected back to the Settings screen, didn't see any relations. Without changing anything I tried clicking "Save changes" and after that, the relationships showed up. However, that brought another set of problems, so I'll open a new issue about those...

limist avatar Aug 27 '18 22:08 limist

@limist @code2prog we're still trying to recreate this bug, did you tried to delete the plugin and reinstall?

matejbasic avatar Sep 21 '18 10:09 matejbasic

@matejbasic I have the same problem here, and i can't see any errors showing. I have deleted the plugin and reinstalled it again but the same problem occured !

WC version : 3.4.5 WP version : 4.9.8

rachidbigm avatar Sep 25 '18 10:09 rachidbigm

After one hour of debugging...

I figured out the problem, when encrypting the token the final token returned by the Encryption method is empty and then the option is not saved in the database or saved but empty.

So when you make the calls to display the relationships the token is not there and the form will not be displayed.

File: WooCommerce-Salesforce-integration-master / includes / controllers / core-class-nwsi-salesforce-token-manager.php
Functions: load_access_token (), save_access_token (), load_refresh_token (), save_refresh_token ()

rachidbigm avatar Sep 25 '18 11:09 rachidbigm

Was anyone able to get this working?

Many thanks

wearethreebears avatar Nov 27 '18 17:11 wearethreebears

Hi, I'd like to know if this plugin is still in dev. I get the same problem: manage relations form and no error even after a fresh installation of the plugin. Thanks

benbois avatar Apr 27 '21 12:04 benbois