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

Javascript error on staging sites #173

Closed
luke-brown-increment-agency opened this issue Mar 7, 2024 · 5 comments
Closed

Javascript error on staging sites #173

luke-brown-increment-agency opened this issue Mar 7, 2024 · 5 comments

Comments

@luke-brown-increment-agency

I've installed the Umbraco.Cms.Integrations.Crm.Dynamics into a client site I'm working on that is in version 10.6.1 of Umbraco. On my development machine I can add a link to microsoft dynamics using the Connect button that appears in the configuration control in the datatype in the settings area of Umbraco and connect to the correct microsoft dynamics installation and verify this.
However when I've released this, to 2 seperate staging sites, the Connect and Revoke buttons don't appear on the configuration control in the datatype.
A javascript error is visible in the console area when I go into Chrome dev tools:
Error: [$controller:ctrlreg] http://errors.angularjs.org/1.8.3/$controller/ctrlreg?p0=Umbraco.Cms.Integrations.Crm.Dynamics.ConfigurationController
at umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:25:168
at umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:117:19
at ea (umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:99:20)
at p (umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:90:355)
at g (umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:84:186)
at umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:83:311
at Object.link (umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:321:432)
at umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:35:134
at Ca (umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:108:361)
at p (umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:92:340) '

'

umbraco-backoffice-js.js.v681b890be59caa30838d617ee76d51b032210541:147

I've ensured the confiuration settings are correct in appsettings and I've verified that all the files are in the App_Plugins folder on the staging site.
Please could this be resolved so my client can use this integration? Let me know if you need any more information.

@acoumb
Copy link
Contributor

acoumb commented Mar 14, 2024

Hi @luke-brown-increment-agency ,

I've tried replicating your use case and installed Dynamics on a cloud instance of Umbraco, and did not encounter any issues - you can check this demo for reference.

My settings look like this:

"Integrations": {
  "Crm": {
    "Dynamics": {
      "Settings": {
        "HostUrl": "https://org....crm4.dynamics.com/",
        "ApiPath": "api/data/v9.2/"
      }
    }
  }
}

Could you provide me with more details that could help identify the cause of the issue?

Thank you,
Adrian

@luke-brown-increment-agency
Copy link
Author

luke-brown-increment-agency commented Mar 14, 2024 via email

@acoumb
Copy link
Contributor

acoumb commented Mar 14, 2024

Could you also try clearing the cache as detailed here?

If this persists, then maybe we can schedule a meeting to walk me through the issue? Just drop me an email at aco@umbraco.com.

Regards,
Adrian

@luke-brown-increment-agency
Copy link
Author

@acoumb
Copy link
Contributor

acoumb commented Mar 14, 2024

Happy to hear that. Glad I could be of assistance.

Adrian

@acoumb acoumb closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants