I had been working on a view, creating custom views templates for a specific view field which contains only the following:

<?php
	print views_embed_view('testuras', 'default', $field['tid']->content);
?>

In the midst of me working on this the site suddenly and without warning no longer loads any images/css from my theme (a custom zen theme). I'm not smart enough to know if it is recognising my theme at all anymore. Changing to one of the themes included with Drupal produces the same result.

I tried removing my custom views template, which I know sounds ridiculous but it is the only thing I've changed, but there is no change.

I've been flushing caches the whole time to pick up my custom template changes and Ctrl+F5'ing, but it won't load my theme.

Does anyone know what might have happened?

UPDATE: Solved!

To save others the need to read all responses, the problem was webhosting-based. They explained that there was a security update and I had a hidden .htaccess that was missing a line (I hope this makes sense to someone).

Comments

vm’s picture

are the stylesheets printing in the head of the source code?
any errors in your drupal logs?

have you tried with another browser?

harrisben’s picture

Thanks for the reply, I didn't think to check if the css from my theme is loading from the source :)

I can confirm that it is not loading the css from my theme, but is from various modules I am using (which there has been no recent change with). I've tested in IE and Firefox but the same problem exists, I really hope it's going to be one of those forehead slapping, 'Doh!' moments.

FYI, the site is www.cibus.co.th (yes - a production site and this is a nightmare).

vm’s picture

have you checked your drupal recent entries log yet?

as a test:
disable js and css optimization in administer -> performance

you're getting a javascript error with reference to jquery. May want to turn on firebug. Not sure if its related to the issue at hand but i bet its headnig in the right direction.

harrisben’s picture

I checked the recent entries log and there are a lot of page not found errors for 500.shtml related to anything residing in /sites/default/files/. There was also a reference to an orphaned action.

I disabled js and css compression and that all seems to be working now, except for any reference to files in the aforementioned directory such as the site logo and any images not held in the theme folder.

Can you give me any idea as to what I should be looking for in firebug? What I've been able to find so far shows errors when referring to anything in /sites/default/files/. I've checked the directory permissions and everything seems to appear as it normally does.

PS Thanks for all the invaluable help so far.

Mackee’s picture

i have the same problem, but on my case my themes is not affected, maybe its because i have my theme under the core themes folder not on sites folder

harrisben’s picture

I can't see on your site where any images are missing because I don't know what it looked like before. Can you provide an example page that helps to illustrate your problem?

Mackee’s picture

Here is an example page http://ps333.net/album/david-generation im using photos module...

I have three sites running on my hosting, and found out that its happening in all three

harrisben’s picture

Ah yes, I see. That looks like exactly the same problem that I have. I will contact Bluehost and see what they say too.

podo’s picture

Thanks! That works!

Mackee’s picture

@harrisben

can you provide what line in the htaccess was missing?

tuccio’s picture

Mackee’s picture

Thanks for pointing me out to the thread!!