I have a site hosted on mediatemple.com

www.indiavoting.com

Recently the site went blank. But this is not the usual white screen. Just the template files aren't outputting anything.
Though the home page is blank, the inner pages are fine, except that they don't have any trace of the theme.
Eg.:
http://www.indiavoting.com/news
http://www.indiavoting.com/latest-news/lalu-asks-pm-make-maha-govt-withd...

The admin section is working fine too, except that the theme elements are absent.
The site theme is a custom theme. And the admin theme is Garland.

There's another thing to add:
The hosting account that this domain is on, is (dv) Dedicated-Virtual 3.5 - Extreme - Media Temple.
this account has too many domains hosted on it. This recently caused errors like the following to appear:

[warn-phpd] mmap cache can't open /var/www/vhosts/indiavoting.com/httpdocs/path/to/modules/file-name.inc - Too many open files (pid 21651).

We removed some of the domains, and this error message vanished, but still the theme issue prevailed.
Anyways, the error has started appearing again now.

I tried adding:

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

It didn't print out any errors on the screen. Though there were similar 'too many files open' errors in watchdog logs.

So apart from removing some more domains and freeing up the server resources, is there anything that can be done on the Druapl front to tackle this?

Any help would be greatly appreciated.
Thanking in advance.

Comments

nico heulsen’s picture

Is there somewhere an exit(); in the templates/code?

paganwinter’s picture

None that I know of.
One other bit of info.

This is how it started:

I was uploading an image (image filed) when I got an error saying file could not be saved, even though I could see the image thumbnail and the actual image at the specified location in the browser by typing out the full path.
This was when another domain (and a sub domain) were being added to the said Media Temple account.

Then as I proceeded through different sections of the site, each of them began shedding parts of the theme, until in the end I was left with a completely naked site :P

So, there were absolutely no code changes (nothing in the template files either) before this started happening.

nico heulsen’s picture

Naked is most times good, but not for a website :-)

Because of the errormessage I think there is a problem with your permissions of the filesfolder (no write-permissions).
If you have enabled optimized css (and/or js) in the performance-section (admin/settings/performance), the generated css-file could not be saved and is not available.
Try to disable the optimize css and optimize js and see if the problem persist. And check the permissions of the files folder. Hope that will help.

paganwinter’s picture

I fear it's much more complicated.

There's no CSS optimization on.

If you have a look at the site, you'll see that no content is being displayed at all on the home page, this might be because the home page entirely consists of blocks.
The home page is actually a view, with a few blocks in the content body region. As the admin, I can see the views tabs (view, edit, clone, export), but no content.
Whereas the inner node pages are rendering content, in the most basic form, but again, no blocks, infact no other regions at all.

D6 has a node.tpl.php file in the modules/node folder. I assumed that the node content is being displayed by this tpl file, whereas the themes template files are still not being accessed properly.

But I am on D5 and it doesn't have this node.tpl.php file in the modules/node folder! :-\
Or I don't know where it is in D5.

nico heulsen’s picture

Drupal 5 has also node.tpl.php, but you have to look in your theme-folder. I don't know wich theme you are using, but if it is standard garland theme, you can find itin the themes/garland folder. If you are using another theme, try to set a drupal theme as basic theme. So you can see if the problem is in the theme, or elsewhere...

paganwinter’s picture

I know that Drupal 5 has node.tpl.php.
But I am talking about the default tpl.php that any module (the node module in this case) provides.
The one from the theme is definitely not being called/accessed. But still the very basic node (with title, author, date, tags and body) is being displayed.
That is why I am assuming that the default tpl file of the module is being used, and not overridden by the theme's tpl.
Now if I could just find out which tpl file this is for D5...

paganwinter’s picture

Anyone, any idea what this could be?

I am getting all admin pages right, without any theme.
And the weird thing is that the whole page is rendered inside a table now, in spite of there being no table anywhere in my page.tpl.php

winnie80’s picture

i know that this is already in active for sometime

but i wonder do you guys have any solution to solve this kind of partial wsod?

i have multisite set up from an existing site because we need all subdomain to be able to share users table with main domain

however after i upload all customization to production site
main site is now wsod, except during login
subdomain sites are working perfectly except when going to user profile (example: user/100)
the user will get wsod

it is as if for some odd reason the site not able to call index.php

i also can not find any error on watchdog or server log it self

please help me

thank you

riggatoney’s picture

I am having the same issue. We have media temple DV, I came into work today and now the site will not render. I am working with media temple support but they really aren't providing much.

Nothing has changed from our end, we do have 3 or 4 subdomains. But now when im in plesk im getting SQL error.