TALK, TASK and FORMS tabs are empty

My TALK, TASK and FORMS tabs are empty like you can see from photo. I have tried add mjs to application/javascript in the nginx mime.types and other solutions on community forms. So please don’t close this topic immediately.


That’s my mime.types:

types {
    text/html                                        html htm shtml;
    text/css                                         css;
    text/xml					     xml;
    text/javascript                                  js mjs;
    image/gif                                        gif;
    image/jpeg                                       jpeg jpg;
    application/wasm                                 wasm;
    application/atom+xml                             atom;
    application/rss+xml                              rss;

    text/mathml                                      mml;
    text/plain                                       txt;
    text/vnd.sun.j2me.app-descriptor                 jad;
    text/vnd.wap.wml                                 wml;
    text/x-component                                 htc;

    image/png                                        png;
    image/svg+xml                                    svg svgz;
    image/tiff                                       tif tiff;
    image/vnd.wap.wbmp                               wbmp;
    image/webp                                       webp;
    image/x-icon                                     ico;
    image/x-jng                                      jng;
    image/x-ms-bmp                                   bmp;

    font/woff                                        woff;
    font/woff2                                       woff2;

    application/java-archive                         jar war ear;
    application/json                                 json;
    application/mac-binhex40                         hqx;
    application/msword                               doc;
    application/pdf                                  pdf;
    application/postscript                           ps eps ai;
    application/rtf                                  rtf;
    application/vnd.apple.mpegurl                    m3u8;
    application/vnd.google-earth.kml+xml             kml;
    application/vnd.google-earth.kmz                 kmz;
    application/vnd.ms-excel                         xls;
    application/vnd.ms-fontobject                    eot;
    application/vnd.ms-powerpoint                    ppt;
    application/vnd.oasis.opendocument.graphics      odg;
    application/vnd.oasis.opendocument.presentation  odp;
    application/vnd.oasis.opendocument.spreadsheet   ods;
    application/vnd.oasis.opendocument.text          odt;
    application/vnd.openxmlformats-officedocument.presentationml.presentation
                                                     pptx;
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
                                                     xlsx;
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
                                                     docx;
    application/vnd.wap.wmlc                         wmlc;
    application/x-7z-compressed                      7z;
    application/x-cocoa                              cco;
    application/x-java-archive-diff                  jardiff;
    application/x-java-jnlp-file                     jnlp;
    application/x-makeself                           run;
    application/x-perl                               pl pm;
    application/x-pilot                              prc pdb;
    application/x-rar-compressed                     rar;
    application/x-redhat-package-manager             rpm;
    application/x-sea                                sea;
    application/x-shockwave-flash                    swf;
    application/x-stuffit                            sit;
    application/x-tcl                                tcl tk;
    application/x-x509-ca-cert                       der pem crt;
    application/x-xpinstall                          xpi;
    application/xhtml+xml                            xhtml;
    application/xspf+xml                             xspf;
    application/zip                                  zip;

    application/octet-stream                         bin exe dll;
    application/octet-stream                         deb;
    application/octet-stream                         dmg;
    application/octet-stream                         iso img;
    application/octet-stream                         msi msp msm;

    audio/midi                                       mid midi kar;
    audio/mpeg                                       mp3;
    audio/ogg                                        ogg;
    audio/x-m4a                                      m4a;
    audio/x-realaudio                                ra;

    video/3gpp

and that’s my nextcloud.conf :


server { listen 80; listen [::]:80; server_name nextcloud.teidom.com;
# Add headers to serve security related headers
    add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header 
    X-Permitted-Cross-Domain-Policies none; add_header Referrer-Policy no-referrer;
    #I found this header is needed on Debian/Ubuntu/CentOS/RHEL, but not on Arch Linux.
    add_header X-Frame-Options "SAMEORIGIN";
    # Path to the root of your installation
    root /usr/share/nginx/nextcloud/; access_log /var/log/nginx/nextcloud.access;
    error_log /var/log/nginx/nextcloud.error;
location = /robots.txt { allow all; log_not_found off; access_log off;
    }
    # The following 2 rules are only needed for the user_webfinger app. Uncomment it if you're planning to use this app. rewrite ^/.well-known/host-meta /public.php?service=host-meta last; 
    #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json
    # last;
    location = /.well-known/carddav { return 301 $scheme://$host/remote.php/dav;
    }
    location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav;
    }
    location ~ /.well-known/acme-challenge { allow all;
    }
# set max upload size
    client_max_body_size 512M; fastcgi_buffers 64 4K;
    # Disable gzip to avoid the removal of the ETag header
    gzip off;
    # Uncomment if your server is build with the ngx_pagespeed module This module is currently not supported. pagespeed off;
    error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location / { rewrite ^ /index.php;
    }
    location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { deny all;
    }
    location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { deny all;
     }

    location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { include fastcgi_params; 
       fastcgi_split_path_info ^(.+\.php)(/.*)$; try_files $fastcgi_script_name =404; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO 
       $fastcgi_path_info;
       #Avoid sending the security headers twice
       fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass unix:/run/php-fpm/www.sock; fastcgi_intercept_errors on; fastcgi_request_buffering 
       off;
    }
    location ~ ^/(?:updater|ocs-provider)(?:$|/) { try_files $uri/ =404; index index.php;
    }


# Adding the cache control header for js and css files
    # Make sure it is BELOW the PHP block
    location ~* \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ { try_files $uri /index.php$uri$is_args$args; add_header Cache-Control "public, max-age=7200";
       # Add headers to serve security related headers (It is intended to have those duplicated to the ones above)
        add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header 
        X-Permitted-Cross-Domain-Policies none;
        # Optional: Don't log access to assets
        access_log off;
   }
   location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ { try_files $uri /index.php$uri$is_args$args;
        # Optional: Don't log access to other assets

And that’s my console output:


Before you ask, tasks-main.mjs works fine.

What installation method? You didn’t really give us any context and apparently missed filling out the support template.

From a quick glance your nginx config looks non-standard:

https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html

P.S. When posting config files, code, etc. please use the preformatted text option in the editor to wrap all of it. Otherwise it is extremely difficult to read.

Sorry for posting config files without using preformatted text. I am new around here. I have installed Nextcloud on RHEL 8 with NGINX web server. When I try to go Tasks tab, for example, I see this error on Network tool:

I have installed Tasks app with no error.

On the other hand, when I try to go Activity tab, I again see this error on console:


I believe, there is a problem with .conf files. Maybe I sound stupid but I appreciate every help.

Please first check for files in
/path/to/nextcloud/apps/tasks/js
e.g.
/path/to/nextcloud/apps/tasks/js/tasks-talk.mjs

If it exists it maybe a webserver rewrite problem. If it does not exists it maybe a Nextcloud app installation problem. I think it is not a browser MIME-Type problem.

I have already checked *.mjs files and they look fine. When I check other solutions, People modify .conf files and add mjs to their conf files. For example:
image
I think problem is my .conf files.
That’s my nginx.conf:

And that’s my mime.types:


image

There is no need to guess: there is a setup check for it. Go to Administration settings->Overview and look for any warnings or errors.

I still can’t really read your original config because you didn’t go back and edit your post to fix the formatting. But I can see multiple opportunities for problems, such as custom error handling.

As I said though: you seem to be using a non-standard nginx config. I presume you either created your config on your own or got it from somewhere. Please check the documented config for nginx in the Admin Manual. Then make yours match the standard one (unless you have a good reason not to have it be that way): NGINX configuration — Nextcloud latest Administration Manual latest documentation

I have edited my original config and put console output too like you said. Again, sorry for mistakes. I have gotten my nextcloud.conf file from this website and modified it. Install NextCloud on CentOS 8/RHEL 8 with Nginx (LEMP Stack) Step 3: Create a Nginx Config File for Nextcloud.
I think i will delete and re-install again for better results. Because when i check Overview, I get this warnings:

I switched Apache and I don’t have this problem anymore. I suggest that everyone use Apache or you have to modify conf files and some other things.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.