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 »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Creating Drupal View of Civi Events caused WSOD
Pages: [1]

Author Topic: Creating Drupal View of Civi Events caused WSOD  (Read 1663 times)

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Creating Drupal View of Civi Events caused WSOD
March 05, 2013, 09:33:16 pm
Hi Community!

I am following the directions on this wiki page:

/confluence/display/CRMDOC40/Event+listing+showing+fully-booked+result+using+Drupal+Views+PHP

... and when I try to Continue and Edit, or Save and Exit, I get a blank white screen with no "out of memory" message.

The display form I am using has one small difference to the one shown on the wiki page which is that next to the Display Format when I choose Unformatted List I do not get any other pull-downs such as the "Fields" menu shown.

Is this likely a memory issue? We can't print PDF's in CiviCRM either and that felt like a lack of memory problem. The server has 168 MB available (although the limit may be currently set at 128MB in Drupal/PHP).

Any insights, suggestions, or help will be very much appreciated.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 03:43:49 am
Hi.

It's not possible to guess at what a WSOD may be. There should be an error recorded in the Apache error log for such however. Can you find that?
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 09:28:35 am
Hi Hershel,

Thank you for responding. I don't have access to the Apache logs as far as I can tell, it's shared hosting and cpanel access only. The error log there is completely empty. 

jcm55

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 14
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 09:37:47 am
Most commonly this will be due to a typo or incorrect PHP syntax in your Setup or Value code entries.

Apache logs are the only efficient way to troubleshoot though.  I would be surprised if your hosting provider did not provide some way to ask them.  Without those it will be very difficult to troubleshoot.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 10:09:38 am
Thanks jcm55. I've contacted my hosting provider and they said sometimes a system glitch will make the error log display empty and they are checking that for me. They said I should be able to see the errors there, too.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 10:51:51 am
UPDATE: Our hosting provider did some tweaks and I can now see error log entries. The first error is "File does not exist:" after I try to create the view using CiviEvents.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 10:53:19 am
Can you post the full error list? For example, what file doesn't exist?
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Creating Drupal View of Civi Events caused WSOD
March 06, 2013, 02:27:29 pm
It was just a test file to make sure I could actually access working error logs, which now works. So I can't provide error messages from before but I can now. So, when I try to create a View that uses fields from CiviCRM by selecting CiviCRM Events in Show, the selection then changes itself to CiviCRM Relationships automagically. If I try to save that View I get the WSOD.

I had installed a Drupal module previously named CiviCRM Events Calendar and then I uninstalled it but it seems to have left some artifacts in the Drupal installation. There is still an active page named Events Calendar Settings which shows the different types of events we set up in CiviCRM, should that still be there after deleting the CiviCRM Events Calendar module? Also in the list of installed modules there is still a listing and checkbox in the CiviCRM section for Civi Events, and I think it's a result of the calendar module putting it there but not removing it when I uninstalled the calendar module.

i need to create some Views to display events from CiviCRM but there's no way to create a View that will let me access the needed fields. I used to be able to but something changed that prevents the CiviCRM event fields from being available to any View I can successfully create.

Is there supposed to be a checkbox and listing in the Drupal installed modules area for CiviCRM for "CiviEvents" as a default from any normal CiviCRM installation?  And if not, how can I get of it if it shouldn't be there after uninstalling the CiviCRM Events Calendar module?

Thank you very, very much for your help trying to fix this.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Creating Drupal View of Civi Events caused WSOD
March 07, 2013, 03:00:38 am
Quote from: Michael on March 06, 2013, 02:27:29 pm
Is there supposed to be a checkbox and listing in the Drupal installed modules area for CiviCRM for "CiviEvents" as a default from any normal CiviCRM installation?  And if not, how can I get of it if it shouldn't be there after uninstalling the CiviCRM Events Calendar module?

No, CiviEvents is built into CiviCRM. Not sure why you don't see it in Views....
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Creating Drupal View of Civi Events caused WSOD
March 07, 2013, 10:49:43 am
Do you know if a Drupal module directory named civicrm_events gets created by a CiviCRM installation? i.e.:

sites/all/modules/civicrm_events

I have one and I am wondering if it's an artifact from installing the Drupal CiviCRM Events Calendar module. I can't really check this myself without installing a separate copy of  Civicrm and checking and I don't have the resources available to do that.

I did have the Drupal CiviCRM Events Calendar  module installed but I uninstalled it and am wondering if the module didn't get installed after all and I need to manually delete it. (I was going to try it but decided it was probably not going to work in a responsive theme on smaller devices like smartphones.)

Do you think it's okay to delete this directory?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Creating Drupal View of Civi Events caused WSOD
March 07, 2013, 10:59:15 am
If you have Drupal 7 and the automatic module installation feature, then, yes, every module creates its own directory in

sites/all/modules/

Disabling and even uninstalling a module do NOT delete the files nor that directory. If the module was disabled and uninstalled (two separate operations) then it's safe to delete it. I don't imagine it will help because Drupal ignores non-enabled modules, but anyway you can delete it.
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Creating Drupal View of Civi Events caused WSOD
March 07, 2013, 11:16:57 am
Thanks, I deleted the directory. I am still unable to create a view using Civi Events fields, however. When I run this:

civicrm/admin/setting/uf?reset=1

... I still do not get any information other than: Settings - Drupal Integration

I have no idea why but I'd sure like to understand and resolve this problem and am wondering if it's somehow connected to my main problem.

I still can't use Civi Events as per the wiki page instructions here:

wiki.civicrm.org/confluence/display/CRMDOC40/Event+listing+showing+fully-booked+result+using+Drupal+Views+PHP

... because whenever I select Show: Civicrm Events it automatically resets to CiviCRM Relationships and if I try to save or continue I get the WSOD.

(The display I see is also a bit different from that shown on the wiki page.)

Any ideas how to fix either of these problems or if they are in fact connected will very certainly be appreciated. I've spent days going around in circles and don't know what else to try or look at.

UPDATE: After reading another Hershel post I guess it doesn't matter if I can see the array displayed or not. The only issue is not being able to create a view using CiviCRM events fields.
« Last Edit: March 07, 2013, 11:20:30 am by Michael »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Creating Drupal View of Civi Events caused WSOD

This forum was archived on 2017-11-26.