Hi,

I have a site that has been running successfully using Corolla as the theme for some time. Recently the site has stopped loading the desktop layout and loads only the default smartphone layout. I have not uploaded or updated any modules that would account for this behaviour.

I have spent the best part of 2 days searching forums etc. for any clue to this behaviour, but nothing suggested works, so I am stumped.

Using Firebug in Firefox gives the following errors:

The stylesheet http://endakenny.com.au/sites/default/files/color/corolla-31ff4d3b/color... was not loaded because its MIME type, "handler/drupal_security_do_not_remove_see_sa_2006_006", is not "text/css".
The stylesheet http://endakenny.com.au/sites/default/files/adaptivetheme/corolla_files/... was not loaded because its MIME type, "handler/drupal_security_do_not_remove_see_sa_2006_006", is not "text/css".
The stylesheet http://endakenny.com.au/sites/default/files/adaptivetheme/corolla_files/... was not loaded because its MIME type, "handler/drupal_security_do_not_remove_see_sa_2006_006", is not "text/css".
[Break On This Error]

I have checked permissions etc. on the hosted server, and nothing appears to have changed. I am using Drupal 7.14, Adaptive Theme 7.x-3.1, Corolla 7.x-3.0-rc1, and the site is:

www.endakenny.com.au

Any help would be greatly appreciated.
Regards,

Comments

donw’s picture

Assigned: donw » Unassigned
Jeff Burnz’s picture

Not really sure, I tried searching the web for issues around drupal_security_do_not_remove_see_sa_2006_006 for example https://drupal.org/node/652002

So you could assume perhaps that your host has changed something and now Drupal cannot load the stylesheets.

donw’s picture

Thanks for your reply Jeff, I really appreciate it.

From suggestions in various other posts I have already played around with various edits to the .htcaccess file without any result. Most of them relate to images not appearing, but this is not my problem. What is actually affected is the layout of the pages, fonts and custom background colours, and specifically the files in the /sites/default/ directory that are not loading.

It is not a permissions issue as I can download them directly with a url pointed at each file.

When I look at the block regions for the theme under structure in the admin menu, it shows as the portrait smartphone layout.

As a test I selected Bartik as the default theme, and although header images etc. obviously weren't there, the right sidebar was with various blocks in it, so there is something very strange going on. It may be that the host has changed something, but at this stage I am doubting that.

I am loath to uninstall the theme and clear the database entries then reinstall as suggested by you until I understand what the problem actually is.

Any other suggestions are most welcome.

Regards,

Jeff Burnz’s picture

Well, those issues regarding https://drupal.org/node/65409 are simply about files and how they are treated, images or whatever, it does really matter what type of file, your issue is about files that load out the sites/default/files directory, right where that htaccess file resides.

Now, I can view most of your sites stylesheets in a browser, but not the ones in sites/default/files - instead the browser asks me to download them - thats not right, they should write to screen in the browser like a txt file.

Normal file:
http://endakenny.com.au/sites/all/themes/corolla/css/print.css (writes to screen in the browser)

Not normal: http://endakenny.com.au/sites/default/files/adaptivetheme/corolla_files/...

Clearly something is wrong with how CSS files are being treated by the server inside sites/default/files.

donw’s picture

Thanks again Jeff.

Following your comments above, I have edited all the .htaccess files to try suggestions posted elsewhere, and compared the file structure, permissions and .htaccess files for another site I am involved with, but which is with a different hosting company, all with no resolution of the problem.

If it is a problem with a change or changes made by the hosting company, my problem is that I haven't a clue as to what specific question(s) I need to ask them to resolve the problem.

Once again, if anyone has any suggestions I would appreciate them.

Regards,

Jeff Burnz’s picture

Simple, ask them why CSS files are are being treated differently in those directories, send them copies of the htaccess files and ask them to sort it out. I assume you have updated to Drupal 7.25 and made the htaccess changes required as of Drupal core 7.24.

donw’s picture

Hi Jeff,

Just an update to let you know that the problem has "mysteriously" resolved itself. I had contacted the hosting company and several emails went back and forth with them finally coming back to me saying that it must have been something I had done with the template, which wasn't the case. As I have been away for a couple of weeks I hadn't been back to them.

I had a look at the site tonight, and it's working correctly again, and I certainly haven't touched anything.

Thanks once again for your help

donw’s picture

Status: Active » Fixed

It would appear the hosting company have removed whatever the problem was with their configuration, whether knowingly to fix this issue or not I don't know as they haven't informed me.

Jeff Burnz’s picture

Good news then, glad it's now sorted!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.