2

I don't know the depth of CiviCRM's official commitment to Drupal 8 yet, but I've followed the instructions posted here for setting it up.

After creating a contact subtype of "Committee" and creating a Drupal view for "CiviCRM Contacts", I attempted to filter on the Committee subtype. When saving, I got a raw server error displayed:

The website encountered an unexpected error. Please try again later.

Checking the Apache logs, I saw:

Uncaught PHP Exception InvalidArgumentException: "The configuration property display.default.display_options.filters.contact_sub_type.value.Committee doesn't exist." at /var/www/html/web/core/lib/Drupal/Core/Config/Schema/ArrayElement.php line 76

This seems to imply that the CiviCRM Views integration isn't providing something that the Views module wants in order to validate the filter value.

Anyone have any suggestions for next steps? Is CiviCRM's dev team developing for Drupal 8 and do they want related bug reports?

1

Thanks for this report.

You can report issues at https://lab.civicrm.org/dev/drupal/issues.

While CiviCRM works under Drupal 8 fine in terms of independent CiviCRM functionality, the support for various integrations into Drupal 8 is still a work in progress. Coleman with support from David Snopek and Will put out a prototype / mockup of D8 webform civicrm May 25 2018. There is going to be a Make It Happen fundraising effort and I'm sure that developer resources and effort will be appreciated.

For view support the plan is to implement a D8 version of entity civicrm module, and then leverage D8 Views support for entities. We at JMA recently pushed some changes to improve D8 entity civicrm support for contacts, but weren't using subtypes like you are. So it may or may not work when using entities. We are also ensuring there is good support for events in views via entities, and starting to help @jackrabbithanna with improvements to earlier Drupal versions of his entity civicrm module.

Feel free to contact me at joe dot murray at jmaconsulting dot biz if you'd like us to get specific D8 integration issues working for you.

| improve this answer | |
  • Thanks for the orientation. Knowing the strategy is very helpful. We (my company) are very open to getting involved at the coding/documentation level, so we'll check into how we can contribute effectively. I'll start by logging what I found in the issue tracker. – theta-fish May 24 '18 at 20:55
  • Note I just editted to include new status of webform civicrm integration. – Joe Murray May 26 '18 at 1:39
1

You may find it helpful to join https://chat.civicrm.org/civicrm/channels/drupal which is where some active discussion about D8 is happening.

Including this update about webform integration

| improve this answer | |
  • 2
    Also note that while CiviCRM has a 'core team' a lot of work is done by the community, so while reporting bugs is useful, finding a way to contribute in some way can increase the speed with which bugs get resolved. – petednz - fuzion May 23 '18 at 20:05
  • Thanks for the tip on the discussion forum. I was at a loss for where to refer. I'm game for getting involved in coding, pull requests, etc., but right now half the battle is just figuring out where the code worth working on might be. – theta-fish May 24 '18 at 20:41
  • And don't get me started on the state of Drupal8 documentation and project support. It's really chaotic right now. – theta-fish May 24 '18 at 20:43
  • It will be great if you can help improve the community documentation for this. Not sure what you mean by 'project support'. there isn't a team of paid 'support workers'. we are mostly other folk using civi voluntarily or as part of our business who opt to try and help out others in the hope that strengthens the community and the project – petednz - fuzion May 24 '18 at 23:10
  • I should have been more clear. By project support, I meant module support for Drupal8 as opposed to Drupal7. As it stands, IMO Drupal8 is only barely over the line of being production capable and only for the most basic of sites. Despite the improvements to core feature completeness, core still lacks many important features, and many of the modules that support them are still in dev status. – theta-fish May 25 '18 at 23:32
0

Are you using civicrm_entity? It seems to work when using that module. Tested on CiviCRM 5.14 and Drupal 8.6.

CiviCRM View with CiviCRM Entity

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.