Nextcloud icons not appearing, files not uploading

Nextcloud version: latest stable
Operating system and version: Ubuntu 20.04 LTS
Apache or nginx version (eg, Apache 2.4.25): OpenLiteSpeed (directadmin)
PHP version (eg, 7.4): 7.4

The issue you are facing:
Top menu icon images are missing, upload any file is stuck in half.

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

Steps to replicate it:

  1. Login to nextcloud
  2. Look at top icons
  3. Open files
  4. Upload any file

The output of your Nextcloud log in Admin > Logging:

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

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

Have you changed something in /path/to/nextcloud/.htaccess or in webserver (OpenLiteSpeed ?) rewrite rules? Normally the posted urls are not possible. Maybe a part of your problem.

I find this quite bad when you use the subdomain name (e.g. cloud.server.tld) both for websites and via “index.php” for Nextcloud.

Please use browser developer mode (F12) and there Network Analysis and post HTTP errors.

That are the only errors attached. And no I didn’t change anything in .htaccess but the panel is using custom error pages, but the issue was ever before that. Just when I installed nextcloud with softaculous. And my main domain is used for other stuff so I use a subdomain.

And tried installing on still same issue.