DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Issue where css is not loading when not logged in to website?

 3 Replies
 1 Subscribed to this topic
 35 Subscribed to this forum
Sort:
Author
Messages
Advanced Member Send Private Message
Posts: 211
Advanced Member

Has anyone seen this issue? I'm seeing this on a test intranet website.

When I'm not logged in, I just see the raw content with no css. Once I log in, the site /pages look normal. I dont see the same issue on the production version of the site. The test version was recently copied from the production (db and content) .

Senior Member Send Private Message
Posts: 1550
Senior Member

Hello Tom: 

It sounds like the file isn't available for some reason.  If you're able to see the full path in the HTML source, I'd suggest trying to load it directly and/or using the web dev console to inspect for any HTTP errors and other clues. In some cases, you may even be able to turn on debugging to determine if a rewrite rule or something else is getting in the way.  

My experience is usually a typo or firewall/rewrite issue.  

Advanced Member Send Private Message
Posts: 211
Advanced Member

Hi Will - 

Thanks for your response! 

I did look in the console and there are multiple css pages that don't load due to this error:

http://sccintranettest/AD...dule.css%3fcdv%3d395 was not loaded because its MIME type, “text/html”, is not “text/css”.

The code and database are identical to our proiduction site, which doesn't show the issue, except for the web(dot)config. Maybe the issue is in the web(dot)config.

Any idea? thanks - 

Tom

Senior Member Send Private Message
Posts: 1550
Senior Member

Well, in the case of a HTTP 404 error, the response itself is indeed text/html, so I wouldn't worry about that too much (yet).  I'd first suggest tracking down what's making it seem like the file isn't there.  

These Forums are dedicated to the discussion of DNN Platform.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved