Fix recently moved Drupal 8 site

Job ID: 33405870

Budget: $50 – $0 USD

We just moved from one host to another and have a few housekeeping items to tend to that we need help. Here's what our hosting company is saying:


I was able to replicate the matter on the URL https://cnvc.org/trainers

After looking at the details of the problem you reported I would like to clarify that it is not directly related to the hosting service. This is a strictly application-related issue and as such it requires the full attention of a professional developer. As a hosting support team, we specialised in finding and resolving hosting-related problems.

Nevertheless, I have searched online for similar issues and I did find this issue to occur often with Drupal. For example, you can find the following theme from the official Drupa site:
https://www.drupal.org/forum/support/module-development-and-code-questions/2018-11-08/mime-type-texthtml-is-not-a-supported
There are several solutions provided there.
The issue is also discussed here:
https://www.drupal.org/project/jstools/issues/72561
https://stackoverflow.com/questions/48913170/refused-to-apply-style-from-because-its-mime-type-text-html-is-not-a-sup

So you may take a look and see if this will work for you. I advise that you back up your site prior to any tests.

----

Looking at the browser console in the URL https://cnvc.org/trainers I can see the following errors:

Refused to apply style from 'https://cnvc.org/sites/default/files/fontyourface/font_display/lora.css?r9vfrz' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Refused to apply style from 'https://cnvc.org/sites/default/files/fontyourface/font_display/lora.css?r9vfrz' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

https://snipboard.io/k7uKsO.jpg

Looking at the provided articles in my previous reply I do believe that this is application related and it is linked to the way that the application is loading CSS content.

As for the search function - again I believe that this is an application related not related to the hosting.

I have checked the transfer ticket - 4216201 and I was able to SSH to the remote server at ec2-3-230-62-43.compute-1.amazonaws.com. I have checked the files that were migrated and from what I can see all files are migrated okay.

My advice will be to check again the articles that i provided on the CSS loading and also check with a professional developer for the search function.
Related categories: PHP CSS Drupal MySQL