Neuralab / woocommerce-salesforce-integration

Salesforce and WooCommerce integration for WordPress. (A syncing engine for all sort of datasets and configurations)
MIT License
29 stars 16 forks source link

Missing manage relations form #18

Open code2prog opened 6 years ago

code2prog commented 6 years ago

Latest wordpress and latest WooCommerce-Salesforce-integration plugin.

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

matejbasic commented 6 years ago

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

code2prog commented 6 years ago

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

limist commented 6 years ago

@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 commented 6 years ago

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...

matejbasic commented 5 years ago

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

rachidbigm commented 5 years ago

@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 commented 5 years ago

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 ()
wearethreebears commented 5 years ago

Was anyone able to get this working?

Many thanks

benbois commented 3 years ago

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