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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal upgrade causing blank CiviCRM screens
Pages: [1]

Author Topic: Drupal upgrade causing blank CiviCRM screens  (Read 3264 times)

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 10:00:51 am
I just upgraded an existing Drupal 6.13/CiviCRM 2.2.8 installation to Drupal 6.15. All the Drupal screens behave as expected, but all /civicrm/* screens are now completely blank.

I followed the Drupal upgrade instructions exactly, including disabling all modules (including CiviCRM) during the upgrade. Not seeing anything unusual in Apache logs.

Not quite sure where to start. Can someone give me a hint? Thx.
« Last Edit: March 03, 2010, 10:23:47 am by ian »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 10:30:04 am

might want to recheck your apache logs / drupal watchdog logs etc. a white screen typically prints information in some log file

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 10:51:55 am
Thank you. Just for a sanity check, can you tell me whether I'm looking in the right places?

For watchdog, I'm using the Drupal web interface at Administer>Reports>Recent log entries. If I attempt to browse to a non-existent URL on my site (/abc) I see a "page not found" warning in the log. But if I go to /civicrm/dashboard, no entry is added to the log.

For Apache, I'm looking in the file I specified as my "ErrorLog" in my <VirtualHost> configuration. There are a few errors from today noting that the file favicon.ico doesn't exist, but that's it.

I've also edited php.ini and set "display_errors = On" and restarted Apache. Still just a white screen when I browse to /civicrm/dashboard.

Does that sound like I'm looking in the right places or am I missing something? Thanks again.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 12:07:10 pm

seems like the right places

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 12:28:28 pm
Okay, assuming I'm reading my logs correctly:
  • Any suggestions as to how I might begin to debug this problem?
  • Is there some sort of cache I could try clearing or some other sort of reset I could give a shot just to see if it works?
  • Can anyone confirm that the "sites" directory is the only one you need to backup/restore during a Drupal upgrade? In other words, CiviCRM doesn't write to any directories outside of "sites", right? When I upgraded Drupal, I backed up "sites", wiped out the entire Drupal install dir, extracted the new Drupal installation, and restored the previous "sites" dir (along with all the other upgrade steps). I wasn't supposed to backup/restore some other dir besides "sites" for CiviCRM, was I?
Thanks for any help.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 02:02:52 pm

1. can u increase your php memory to 128M or so and see if that helps

2. you can try truncating

civicrm_cache
civicrm_acl_cache
civicrm_menu

also run

update civicrm_domain set config_backend = null;

3. if you have attachments / uploaded images, u'll need to save those directories also (typically under files/civicrm/)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 02:41:58 pm
Thanks again for the response. I was already at 128M, and I tried your suggestions to no avail.

But now my problem is getting more serious. I just tried to revert to Drupal 6.13. I wiped the install dir, extracted 6.13, restored my original "sites" dir from a tarball, and restored my database from a dump file I took immediately before starting the upgrade. Drupal is back to where it was and it works but I'm getting the same behavior with all civicrm pages - WSOD. Clearly, I screwed something up during the initial upgrade. In fact, while reverting to 6.13 I realized something odd happened when I was first backing up the sites dir. After I tar'd it, I tried to "rm -rf" the install dir, but there were a handful of files in the sites dir (I think they may have been in a civicrm subdir) that I didn't have permission to delete, so I had to do it under sudo. So maybe those files didn't make it into the sites tar either.

The only thing I can think of to do at this point is to delete civicrm.settings.php and files/civicrm, drop all civicrm_ tables in my DB and reinstall from scratch. So here's my question: if I install a fresh copy of civicrm, what tables would I need to restore from my backup to get things back to the way they were? Or is that whole idea asking for trouble?

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Drupal upgrade causing blank CiviCRM screens
March 03, 2010, 09:00:35 pm
Okay, I got it back up and running by deleting civicrm.settings.php and files/civicrm, dropping all civicrm_* tables, reinstalling CiviCRM as though it were a new install, and then loading civicrm_* tables from my backup. Once I knew I could get it back, I tried doing the Drupal upgrade again. This time, instead of tar'ing the sites dir, I copied it out to a temp dir using cp -arp, but I ended up having the exact same problem with the WSOD on civicrm pages. I have no idea what I'm doing wrong with the Drupal upgrade that's causing this, b/c I'm following their directions to the letter. But if what I'm doing to work around it works, to me that suggests that something in the sites dir isn't being copied out and back in successfully.

If anyone has seen something like this before, I would like to hear about it.

rpv

  • Guest
Re: Drupal upgrade causing blank CiviCRM screens
March 12, 2010, 12:55:06 pm
I am getting same WSOD with new installation of Drupal 6.16 and civicrm-3.1.3-drupal. Any ideas? Installed drupal, then civicrm with everything seemingly going smooth. Click on anything Civicrm and get blank screen.


Hmmmm, checked the error logs and found this...


PHP Fatal error:  Uncaught exception 'Exception' with message 'SimpleXML not loaded.' in /var/www/.....




« Last Edit: March 12, 2010, 01:01:43 pm by rpv »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Drupal upgrade causing blank CiviCRM screens
March 12, 2010, 02:22:55 pm
Can you check your php.info & see if  SimpleXML is there? Do you know how to include it? You may need to ask your hosting provider to do that for you.

http://drewish.com/node/58

I found this description of how to do it but I think it's probably a second ditch approach
http://blog.taragana.com/index.php/archive/simplexml-doesnt-work-with-php-5x-problem-solution/
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Ed van Leeuwen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 1
  • CiviCRM version: 4.7
  • CMS version: Drupal 7.x
  • MySQL version: MariaDB 10
Re: Drupal upgrade causing blank CiviCRM screens
March 19, 2010, 09:31:17 am
I had the same problems. I removed the templates_c dir and then tried to issue the update statement for the backend. This solved the white screens and errors.

The only problem I now faceis that when I use CSS optimization CiviCRM stops working displaying a page cannot be displayed error (all other settings in Drupal's Performance module work properly). Perhaps this happens with you as well.

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: Drupal upgrade causing blank CiviCRM screens
February 25, 2011, 11:12:18 pm
mmmm.... I just did a (rather untidy) upgrade of drupal from 6.19 to 6.20 and now have the wsod with my civicrm (latest 3.3.5), even tho drupal is working well... no error messages appearing in either of the log locations mentioned by Ian (3 Mar 2010 10:51 above)... so I'm quite lost...

It was an untidy upgrade because drupal 6.19 flipped out when I tried to write protect a directory and wouldn't calm down when I re-opened access (drup somehow activated its new installation script and would turn not back!)... doing an upgrade of drupal got the drupal working again, but now civicrm is sulking and wont talk to me!!!

this is obviously an unusual story but any tips welcome!!! clearly civicrm could be a bit more communicative tho!
« Last Edit: February 25, 2011, 11:18:23 pm by Erich Schulz »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal upgrade causing blank CiviCRM screens

This forum was archived on 2017-11-26.