CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • fixing the white screen of death
Pages: [1]

Author Topic: fixing the white screen of death  (Read 2987 times)

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
fixing the white screen of death
February 26, 2011, 06:08:26 pm
ok I was stuck on the wsod... how I got here is a sad and sorry (and separate story)... I also had nothing visible in log files... so was very stuck

anyway after bruising my forehead for some time I just stuck

ini_set('display_errors','On');

in my civicrm.settings.php file and got a meaningful error message... I'm still in the woods but at least now I have a compass!

this may not be best practice but I found in my searches quite a few wsod posts with silent logs (none reflected my particular problem) so this tip could help others... hope it does!

arielqgold

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 3.3.1, 3.3.5, 3.4.5
  • CMS version: Drupal 6.22
Re: fixing the white screen of death
March 24, 2011, 09:28:23 pm
Thank you, that was helpful!

In my case I did rm -rf sites/example.com/files/civicrm/templates_c/* and that got rid of the WSOD.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: fixing the white screen of death
March 25, 2011, 02:48:21 am
There should always be an error recorded in the server error logs, whether or not PHP reports it on the screen.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: fixing the white screen of death
March 25, 2011, 10:32:17 pm
"should" being the key word!

not suggesting this as best practice, but with my host I couldn't find or get to the logs and reading some other posts I don't think I'm alone

 :)

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Re: fixing the white screen of death
August 08, 2011, 03:09:55 pm
I'm having a similar problem -- updated drupal to 6.22 and reloaded CiviCRM 3.4 and all I get when I try to get into any of the CiviCRM pages I get the WSOD. I suspect that it is a problem with the templates. I can find no templates_c directory under ../sites/all/files/civicrm. Someone suggested "In my case I did rm -rf sites/example.com/files/civicrm/templates_c/* and that got rid of the WSOD." I'm to bloody ignorant to know how to "do" this.  Does this mean create a ...templates_c directory? And I assume I have to make it writable by the server? Thanks for any help.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: fixing the white screen of death
August 09, 2011, 11:53:04 am
Quote from: Erich Schulz on March 25, 2011, 10:32:17 pm
not suggesting this as best practice, but with my host I couldn't find or get to the logs and reading some other posts I don't think I'm alone

This is a lack of responsibility or accountability on the part of your host. :(

Quote from: rflemin on August 08, 2011, 03:09:55 pm
I'm having a similar problem -- updated drupal to 6.22 and reloaded CiviCRM 3.4 and all I get when I try to get into any of the CiviCRM pages I get the WSOD. I suspect that it is a problem with the templates. I can find no templates_c directory under ../sites/all/files/civicrm. Someone suggested "In my case I did rm -rf sites/example.com/files/civicrm/templates_c/* and that got rid of the WSOD." I'm to bloody ignorant to know how to "do" this.  Does this mean create a ...templates_c directory? And I assume I have to make it writable by the server? Thanks for any help.

Standard location for templates_c is actually sites/all/files/civicrm/ Look there. If not, then open up sites/default/civicrm.settings.php and find a line starting with:

define( 'CIVICRM_TEMPLATE_COMPILEDIR

and there it will show you your templates directory.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Re: fixing the white screen of death
August 09, 2011, 12:12:49 pm
Thanks for the advice. I did find the templates_c directory eventually.

I'd appreciate it if someone could tell me what Arielgold meant by "In my case I did rm -rf sites/example.com/files/civicrm/templates_c/* and that got rid of the WSOD". I'm not real strong in Linux (or any CLI) so I don't understand what she "did".
.....OK, stoopid me, I did look up rm and -rf and I think this means remove all the files in the stated directory (and their little dogs, too). I guess I will try that, maybe on a test site first. As I understand it, CiviCRM generates all those templates, so maybe when I installed the new CiviCRM without removing the old templates, it created new/additional ones and now is too confused to display anything.

I'm now working on the theory that maybe what I have been upgrading is an overlay on an essentially empty database. So that when I do a backup and restore, I am just restoring a data base without data. CiviCRM can find the page because the filename is there, but there is no content, so I get a WSOD instead of an error message. Does this make sense? I'm going to take a mental health break and then switch back to the Linux machine I was using earlier and see if I can find a backup that is actually populated. None of the backups saved to the Windows machine I am still using seem to have anything in them. Failing that, I will go back to my long-suffering ISP and see if he can do a restore from, say, three months ago.
Thanks for any advice, past and future.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: fixing the white screen of death
August 09, 2011, 12:16:03 pm
You may remove any and all files, directories and puppies in the templates_c safely. CiviCRM will always regenerate those. Often when moving a site or replacing one, you need to remove those directories to avoid template conflicts.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: fixing the white screen of death
August 09, 2011, 02:56:17 pm
@rflemin,

You said ...

Quote
I'd appreciate it if someone could tell me what Arielgold meant by "In my case I did rm -rf sites/example.com/files/civicrm/templates_c/* and that got rid of the WSOD". I'm not real strong in Linux (or any CLI) so I don't understand what she "did".

I see you worked out "rm -rf" but did you understand "example.com" in the path? Despite what an earlier respondent claimed, the "template_c" directory is not placed under "sites/all" which contains resources available to all the sites this instance of Drupal manages. It's placed under "sites/default" by default, which contains resources available to the default site.  It's placed under "sites/example.com" if CiviCRM is associated with "example.com".

Ken

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Re: fixing the white screen of death
August 12, 2011, 12:41:24 pm
I just fixed my WSOD when I realized that, just because I had made my /sites/default/files directory writable, as instructed, it didn't mean all the subdirectories were writable. Once I checked the little box in WinSCP that said "make changes recursively", everything worked fine. I had done earlier installs with Linux and it worked differently.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • fixing the white screen of death

This forum was archived on 2017-11-26.