LDAP App Mimetype error no js execution

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache2
PHP version (eg, 7.4): 7.4

The issue you are facing:
I got a problem in configuring LDAP over Web-IF.
Seems that no Javascript is executed.
Reason: See console log

Refused to execute script from ‘https://domain/index.php/apps/dashboard/’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

This leads to:

Uncaught TypeError: $element.multiselect is not a function
at Class._initMultiSelect (wizardTabGeneric.js?v=1bc9356a-1:382:13)
at Class.init (wizardTabAbstractFilter.js?v=1bc9356a-1:45:9)
at Class.proto. [as init] (wizardObject.js?v=1bc9356a-1:37:21)
at Class.init (wizardTabUserFilter.js?v=1bc9356a-1:62:9)
at Class.proto. [as init] (wizardObject.js?v=1bc9356a-1:37:21)
at new Class (wizardObject.js?v=1bc9356a-1:47:15)
at new Wizard (wizard.js?v=1bc9356a-1:55:13)
at wizard.js?v=1bc9356a-1:79:2

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. I dont know

The output of your Nextcloud log in Admin > Logging:

{"reqId":"eLflJhW3F2ti6n13b8I4","level":3,"time":"April 20, 2022 19:49:36","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Uninitialized string offset: 0 at /var/www/nextcloud/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php#39","userAgent":"--","version":"23.0.3.2","exception":{"Exception":"Error","Message":"Uninitialized string offset: 0 at /var/www/nextcloud/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php#39","Code":0,"Trace":[{"file":"/var/www/nextcloud/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php","line":39,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"function":"OC\\Core\\Command\\Maintenance\\Mimetype\\{closure}","class":"OC\\Core\\Command\\Maintenance\\Mimetype\\GenerateMimetypeFileBuilder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php","line":40,"function":"array_filter"},{"file":"/var/www/nextcloud/core/Command/Maintenance/Mimetype/UpdateJS.php","line":57,"function":"generateFile","class":"OC\\Core\\Command\\Maintenance\\Mimetype\\GenerateMimetypeFileBuilder","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Mimetype\\UpdateJS","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\/

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Not relevant

The output of your Apache/nginx/system log in /var/log/____:

Not relevant

Screenshot that leads from the issue. As one can see page is not loeaded correctly.


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Need help please