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

Forms 4.0 now blank after upgrading. #1838

Closed
llambkin opened this issue Dec 16, 2023 · 6 comments
Closed

Forms 4.0 now blank after upgrading. #1838

llambkin opened this issue Dec 16, 2023 · 6 comments
Labels
wontfix This will not be worked on

Comments

@llambkin
Copy link

I have upgraded from NextCloud 27 to 28, and now my forms page is completely blank. I can access files, photos etc. but the forms tab displays a blank page with just the app tabs and user account icons visible.

Expected behavior
Forms section to load correctly

Screenshots
image

Nextcloud (please complete the following information):

  • Nextcloud-Version: 28
  • Forms-Version: 4.0

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome and Edge

Browser log
JQMIGRATE: Migrate is installed, version 3.4.1
forms-main.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
session-heartbeat.js:103 session heartbeat polling started
bootstrap:19 Proxying an event bus of version 3.1.0 with 1.3.0
e @ index.es.js:2337
91099 @ index.es.js:3314
a @ bootstrap:19
76506 @ requesttoken.js:11
a @ bootstrap:19
3878 @ index.js:25
a @ bootstrap:19
50395 @ index.js:14
a @ bootstrap:19
22534 @ index.js:41
a @ bootstrap:19
61595 @ notificationsService.js:92
a @ bootstrap:19
Promise.then (async)
NotificationsApp @ main.js:42
f @ vue.runtime.esm.js:2796
si @ vue.runtime.esm.js:4478
(anonymous) @ vue.runtime.esm.js:2916
oe @ vue.runtime.esm.js:2866
t.$createElement @ vue.runtime.esm.js:2639
render @ main.js:44
t._render @ vue.runtime.esm.js:2684
i @ vue.runtime.esm.js:3875
t.get @ vue.runtime.esm.js:3446
t @ vue.runtime.esm.js:3436
t @ vue.runtime.esm.js:3892
Ti.$mount @ vue.runtime.esm.js:8779
t._init @ vue.runtime.esm.js:5705
Ti @ vue.runtime.esm.js:5766
(anonymous) @ main.js:37
(anonymous) @ main.js:44
(anonymous) @ main.js:44
Show 13 more frames
Show less

Additional context
I have deleted forms and reinstalled, and has the same result

@llambkin llambkin added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Dec 16, 2023
@Chartman123
Copy link
Collaborator

Hi @llambkin there's probably not a problem with Forms but with your web server. Which server are you using? Please make sure that the mimetypes are configured correctly.

@llambkin
Copy link
Author

Hi @llambkin there's probably not a problem with Forms but with your web server. Which server are you using? Please make sure that the mimetypes are configured correctly.

okay. Would you kindly guide me on how to go about this? I wasn’t aware I had to be a coder to utilise this software.

I am using the Linuxserver docker container on Unraid.

I have no idea on what a mimetype even is nor where to start. All the rest of NextCloud seems to work fine.

@Chartman123
Copy link
Collaborator

Chartman123 commented Dec 18, 2023

be a coder

You're not supposed to be a coder, but you should at least now a little about web servers and how the web works in general 🙂

I'll be closing this issue. Please follow the Linuxserver bug tracker, as there's already an issue with the same problem:

linuxserver/docker-nextcloud#388

It seems to be related to a file mime.types used by the nginx web server in those images. You'll have to add mjs to the list of javascript file extensions in that file. As nginx is not officially supported by Nextcloud that's all I can do for you right now. Good luck! I hope you can figure out how to fix it yourself.

@Chartman123 Chartman123 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2023
@Chartman123 Chartman123 added wontfix This will not be worked on and removed bug Something isn't working 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Dec 18, 2023
@llambkin
Copy link
Author

be a coder

You're not supposed to be a coder, but you should at least now a little about web servers and how the web works in general 🙂

I'll be closing this issue. Please follow the Linuxserver bug tracker, as there's already an issue with the same problem:

linuxserver/docker-nextcloud#388

It seems to be related to a file mime.types used by the nginx web server in those images. You'll have to add mjs to the list of javascript file extensions in that file. As nginx is not officially supported by Nextcloud that's all I can do for you right now. Good luck! I hope you can figure out how to fix it yourself.

Okay, got it!
I edited file /config/nginx/nginx.conf

Scrolled down to http { section, and made my section look like this:

http {
# Includes mapping of file name extensions to MIME types of responses
# and defines the default type.
include /etc/nginx/mime.types;
types {
application/javascript js mjs;
}
default_type application/octet-stream;

Reloaded Nextcloud, and it now works :)

@nicovd737
Copy link

Hello,

be a coder

You're not supposed to be a coder, but you should at least now a little about web servers and how the web works in general 🙂
I'll be closing this issue. Please follow the Linuxserver bug tracker, as there's already an issue with the same problem:
linuxserver/docker-nextcloud#388
It seems to be related to a file mime.types used by the nginx web server in those images. You'll have to add mjs to the list of javascript file extensions in that file. As nginx is not officially supported by Nextcloud that's all I can do for you right now. Good luck! I hope you can figure out how to fix it yourself.

Okay, got it! I edited file /config/nginx/nginx.conf

Scrolled down to http { section, and made my section look like this:

http { # Includes mapping of file name extensions to MIME types of responses # and defines the default type. include /etc/nginx/mime.types; types { application/javascript js mjs; } default_type application/octet-stream;

Reloaded Nextcloud, and it now works :)

Wonderfull !
Thanks for the tip, it solved our issue with Forms.

@Chartman123 Sorry for creating new ticket for that but for me github search is not very usefull for non github users :-) By the way it's another subjet.

Regards.

@Chartman123 Chartman123 pinned this issue Jan 18, 2024
@bernd-wechner
Copy link

I had self same problem. Add ".mjs" to my mimetypes configuration as "application/javascript" and the Forms app came good! Turns out .mjs is an ES6 extensions and seemingly hasn't made it into all default mime type declartions and configs yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants