DWRXformsService is not defined in XFroms

What happens when you click the design xform link.

a Window with “Unexpected Failure” and then below the same error as the in the op message:

Uncaught exception: com.google.gwt.core.client.JavaScriptException: (ReferenceError): DWRXformsService is not defined
at Unknown.isUserAuthenticated(Unknown source:0)
at Unknown.$ec(Unknown source:0)
at Unknown.f$b(Unknown source:0)
at Unknown.LZb(Unknown source:0)
at Unknown.UZb(Unknown source:0)
at Unknown.M9(Unknown source:0)
at Unknown.$9(Unknown source:0)
at Unknown.Pv(Unknown source:0)
at Unknown.http://localhost:8080/openmrs%20(Unknown source:0)
at Unknown.Lx(Unknown source:0)

Restart your computer and tell me if you still get the same error.

Yes, I do get the same error.

Which version of the module are you running? And which version of the OpenMRS platform?

Sorry for the delay, forgot to mark this thread as “watching”. The module Xforms has the version 4.3.12 and the platform is the Reference application 2.10.0 mentioned here with the relevant modules because I was having trouble installing the necessary modules myself.

Can you share the full tomcat server side log via pastebin.com?

localhost access log: https://pastebin.com/bdVb2RZ2 localhost: https://pastebin.com/Wx3Q6rj6

There does not seem to be a lot on this particular error (I had some other unrelated errors). Apart from what is seen in the localhost access log and from one of my previous messages there is not more. Unless I am missing some other log file (I checked the manager log, host manager and catalina logs too).

Can we look at the catalina logs?

Today, I am not getting that error anymore though. It is very strange, now I am getting in but with another error:

Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'i' of null
    at Unknown.$nc(Unknown source:0)
    at Unknown.ijd(Unknown source:0)
    at Unknown.hjd(Unknown source:0)
    at Unknown.ijd(Unknown source:0)
    at Unknown.hjd(Unknown source:0)
    at Unknown.cjd(Unknown source:0)
    at Unknown.ajd(Unknown source:0)
    at Unknown.Lfc(Unknown source:0)
    at Unknown.M9(Unknown source:0)
    at Unknown.$9(Unknown source:0)

catalina: https://pastebin.com/y9LpuYVx (I dont think there is anything error related)

localhost_access log : https://pastebin.com/SyESiGkK

localhost: https://pastebin.com/6MZSN8Ec

Still, do you know why it is not possible to upload XForms anymore? is this intended?

Can you use the Firefox browser and tell us what happens?

It indeed works with firefox browser, thank you, may I ask you how you knew that it would work?

Regarding the upload XForm button, I still do not see it using firefox, has this feature been removed?

I just remembered that i tested using Firefox.

What do you plan to use upload for? Design Xform should be all you need.

Thanks!

I have an XForm, and I would like to test whether it would be possible to just upload the existing form as-is or whether it would not be possible or whether alterations would be necessary to be made in the form, hence my questions.

If the xform did not come from the Design Xform link, it would be too much work to have all the necessary concept bindings.

I guess you are right. So that means the upload XForm button not appearing is not an error / bug but actually intended and not expected to be there in newer versions?

Can you share a screenshot of where you expected it to be?

I thought I had seen it in the screenshot here, right next to the other buttons as download XForm, Design XForm and so on, but I guess I was expecting it to be there because in the same page after Costumizations, the functionality of said buttons is explained (Design XForms, Delete XForms, Download Xforms ) where “Upload XForms” is included and stated that is one of the menu items. I see all of the others but not the upload menu item.

I was wondering what the process would look like if someone would like to upload an XForm to the server? Even if extra work would be necessary for concept bindings we would be fine with it, because the form we have would be too complex (900+ questions and advanced) to try and design it from scratch.

Do you have a scanned version of that form to share?