-
Notifications
You must be signed in to change notification settings - Fork 0
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 when loading any form #1056
Comments
Hi there @MrJackWilson! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
If it's working locally and not in another environment, a couple of things come to mind. Could be caching - perhaps you had an earlier version installed and have now upgraded. If that's a possibility please make sure you have fully cleared the cache via the configuration setting discussed here. If you've upgraded from Umbraco 9, could also be some files you need to remove from your upstream environment before deploying. |
I tried clearing the cache in all the ways. I even created an entirely new site on the server so I could publish a clean copy, the problem persisted. I then tried creating an near enough empty project with forms. I published it to the server and got the same problem. I ended up getting around the problem by creating a dummy JS file which runs |
OK, perhaps there's some sort of race condition going on then... that populates this variable happens fast enough locally to not see the problem but it manifests itself in a deployed environment. Will see if I can track it down. |
What version of Forms are you running please? I can see you've provided the CMS version, but would be useful to know the Forms version too. |
Ah sorry, thought I included that. It's 11.2.0 |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
11.4.2
Bug summary
I'm getting a JavaScript error whenever I try to load a form or it's entries. I only get this error when pushing it to our live server, on my local build it works just fine. It complains of an undefined
currentUserId
variable. The only place I can find this variable in the forms code is in umbraco.forms.js. It is mentioned twice, lines 1349 and 1823. Both times are an assignment to the variable, although the type of variable,var, let, const
, is not specified, which I think would only be an issue ifuse strict';
is being used, which I don't think it is.Specifics
The text was updated successfully, but these errors were encountered: