Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salesforce connector #1008

Open
grantcolin opened this issue Apr 28, 2023 · 18 comments
Open

salesforce connector #1008

grantcolin opened this issue Apr 28, 2023 · 18 comments
Assignees

Comments

@grantcolin
Copy link

grantcolin commented Apr 28, 2023

I have been trying to get the salesforce connector working with myddleware version 3.3.0b. I have set it up but I get this error :

Connection failed : Authentication failure /public_html/myddleware/src/Solutions/salesforce.php Line : ( 841 )

Does anyone know what would be wrong here ?

Also the documentation for the salesforce connector seems to be a bit out of date. Screenshots do not match current version of myddleware for example the token field is missing.

@Myddleware
Copy link
Owner

Hi @grantcolin , could you try to test your credential in our demo version here : https://demo.myd.myddleware.cloud/public
Please do not save the connector, it is just to test if the issue comes from you Myddleware instance.

We will have a look into the screenshot of our tutorial. Thanks.

@grantcolin
Copy link
Author

Hi - I now have my salesforce passing the connector test however when I add my first rule and select salesforce connector it just sits there and never completes.

image

@grantcolin
Copy link
Author

I also see this error in the logs:

[2023-05-01T02:27:19.780333+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "asort(): Argument #1 ($array) must be of type array, string given" at /home2/public_html/myddleware/src/Manager/ToolsManager.php line 67 {"exception":"[object] (TypeError(code: 0): asort(): Argument #1 ($array) must be of type array, string given at /home2/public_html/myddleware/src/Manager/ToolsManager.php:67)"} []

@CamillePMyddleware
Copy link
Collaborator

Hello grantcolin, can you tell me which version of PHP you are using? (The version of Myddleware you are using requires at least PHP 8, the best version is 8.1.7).
I kindly suggest to install the latest version of Myddleware: https://myddleware.github.io/myddleware/#/?id=install-myddleware

feel free to reach out if you need further assistance.

@grantcolin
Copy link
Author

grantcolin commented May 10, 2023

Hello PHP is version 8.1.18 Myddleware 3.3.0b

@raulcaparida
Copy link

Hi!

I'm also having trouble connecting (same error).

I'm using Myddleware 3.3.4a on Moodle 4.2.6+ and Salesforce (staging)

I can see the error:

php.INFO: User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.listener.form.main" service is deprecated, use the new authenticator system instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.listener.form.main" service is deprecated, use the new authenticator system instead. at /home/achiev35/public_html/myddleware/var/cache/prod/ContainerWiQ0aoU/App_KernelProdContainer.php:6641)"} []

anyway has a clue on how to fix this?

@Myddleware
Copy link
Owner

Hi @raulcaparida,

Did you put 1 in sandbox because you are using a stanging environement :
image

@raulcaparida
Copy link

raulcaparida commented Apr 10, 2024 via email

@Myddleware
Copy link
Owner

Unfortunately I can't see the image.

You can follow these tutorials :

We often connect Moodle and Salesforce without problem. So it should work but let us know if it doens't.

@raulcaparida
Copy link

raulcaparida commented Apr 10, 2024 via email

@Myddleware
Copy link
Owner

Thanks for this last information (it works on our demo).
Could you check if the curl extension for PHP is installed on your server?

@raulcaparida
Copy link

raulcaparida commented Apr 11, 2024 via email

@raulcaparida
Copy link

raulcaparida commented Apr 11, 2024 via email

@Myddleware
Copy link
Owner

Hi @raulcaparida ,
I see no error or fatal logs, so it is difficul to say what is wrong. The problem seems to on the server side. However, if you are developer, you could try to debug Moodle or Salesforce connector. Here is the function for Moodle :

public function login($paramConnexion)

If you want us to debug your Myddleware's instance, please contact us directly. You will find our email address here : https://github.com/Myddleware

@raulcaparida
Copy link

raulcaparida commented Apr 11, 2024 via email

@Myddleware
Copy link
Owner

Hi @raulcaparida ,
Yes Myddleware is compatible php 8.1 and 8.2.
Could you make sure the webuser (could be www-data, httpd...) has the permission to write in the directory /var/cpanel/php/sessions/ea-php81 ? It seems that I can't create the session.

@raulcaparida
Copy link

raulcaparida commented Apr 12, 2024 via email

@Myddleware
Copy link
Owner

Perfect, please let me know if it works now.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants