I had a drupal installation online on a linux server (of course!), \drupal
It was working fine, until one fine day, it just stopped working or should I say showing up.

My index.php just does not show up, it looks just like a clean slate. Similarly, no other page is opening up.

I took the complete backup on my hard disk and checked it on localhost/ but to my surprise, it is working absolutely fine (after configuring update.php). I tried replacing all the files from my backup, including the modified update.php file, but the problem remains. I tried restoring the database, but still in vain.

I even washed the whole folder away and tried a fresh creation of directory but again the site is not showing up at all.

Please help. Anybody has some clue or can guide me regarding this.

Best regards and many thanks in advance

Sugandh Malhotra
www.gonogo.in/drupal/index.php

Comments

vm’s picture

check your http error logs on your server for the error (if any) being thrown during the blank screen.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

Sugandh_m’s picture

I am really struck very badly in this problem.

I invite the users to include me on Gtalk (Google Talk) Sugandh.malhotra@gmail.com

and guide me if possible, through this problem.

Thanks a tonne in advance

Sugandh Malhotra

techfalcon’s picture

Check your settings.php file for $base_url = http://www.gonogo.in/drupal
If you are using drupal in a subdirectory.

Techf Falcon
http://www.techfalcon.com

Sugandh_m’s picture

Thanks for your kind feedback.

I checked my settings.php. I believe the answer to my question might be linked to settings.php in some way.

However, I feel there is some problem in basic code writing of settings.php

It was difficult to differentiate comments from the actual line of code

Thanks and best regards

Sugandh Malhotra

mrrijo’s picture

Site hacked??

-------------------------------------
http://www.sabarimala.info

LiquidWeb’s picture

Did you use UTF-8 in your template files because such issues happens after saving file as UTF-8 rather than ANSI. If so open your template files as ANSI and remove weird chars at the begining of file.

Sugandh_m’s picture

Thanks fr the reply.
However, I could not grasp.
Pls elaborate more on this mode. I desire to know more about the same.
I am using standard template, i.e. themes. Which templates are you refering to?

Thanks in advance

Sugandh Malhotra

LiquidWeb’s picture

I was talking about custom themes there is a problem about saving encoded UTF-8 which causes completely blank screens. It even has a name like "white death page" or something like that :). I am asking If you have made any modifications in your file and saved them UTF-8 encoded. If so try to save them ANSI encoded after removing characters at the begining of file.

PS: I checked link again and it seems your site is working fine. If you tell how you manage it to work other guy, who may have same problem can easily solve their problems.

Sugandh_m’s picture

I replaced everythng from a back up and tried relpacing database also from a back up.

The site worked fine for a day and just now, I checked, it is again "death-white".

I have no clue why it is happening repititively.

Is drupal so unstable???

Sugandh

Sugandh_m’s picture

Yes, I did try modifying the theme.
However, I do not recall finding any place where UTF-8 could be configured from within the "configure" settings of chosen "Garland" theme.
If you could handheld me on this, I shall try to elve in deeper and try to resolve the problem yet again, as it resurfaced.
But interesting though, things are workin absolutely smooth on the localhost.

Best regards

Sugandh Malhotra

vm’s picture

If it's working correctly on your localhost but not on your server, I'd suggest that your server is unstable not drupal.

White screens are apache errors, you should have access to logs above your public root. YOu may have to ask your hosts support where these logs are located. With the errors that are being produce you would get a more concrete answer on what is happening.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

dmjossel’s picture

This does not refer to changing a setting or line within the Garland theme.

What is meant is that whatever program you are using to edit the Garland theme is saving the text file using the UTF-8 text encoding, when ANSI should be used instead.

Don't look within the Garland theme file. Look inside the settings of your text editor.

LiquidWeb’s picture

Yep I refer to your text editor. Try to use notepad++ which gives a chance to switch between ANSI and UTF-8 or simply use texteditor of your ftp-client if it does. Forexample cuteftp editor only supports ANSI. Propably your editor has saved document UTF-8 encoded because of chars used in template. Inorder to avoid this problem never use non-english chars. If you print string output after putting it into t() function you will have a chance to translate at backend.

Sugandh_m’s picture

The problem got accidently resolved. I wish to share with the community members, how did i do it.

I tried configuring the PHP memory, which could be a possible cause. I tried configuring .htaccess and settings.php files

I did the following:-
1)Enable error reporting in index.php page to know what is the error by including the following right at the top:-

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

/**
*@file
*/
....

2) Deleted un-wanted modules directories from Modules directory. It seems even the not running modules take up some space in memory
3) Configured .htacess file in the root folder (if apache is just a CGI script running on the server) to include the following:-
php_value memory_limit 40M to your .htacess file inthe drupal root
4)ini_set('memory_limit', '40M'); to your sites/default/settings.php file

Although I raised the default value to a good 40M but I am getting the following error while opening index.php:-

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /domains/39450/web/drupal/modules/forum/forum.module on line 513

Can someone throw a light on this? Why the memory was not increased in PHP settings?

Thanks for all your help and guidance.

Sugandh Malhotra

Sugandh_m’s picture

Problem finally solved.

Website working fine now

Thanks all for your support and guidance

Sugandh