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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • CiviCRM for Drupal 8 - taking it forward
Pages: [1] 2

Author Topic: CiviCRM for Drupal 8 - taking it forward  (Read 1946 times)

jonathanjfshaw

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.6
  • CMS version: Drupal 8
  • MySQL version: Pantheon
  • PHP version: 5.5
CiviCRM for Drupal 8 - taking it forward
June 15, 2015, 09:34:30 am
I have a project starting this August for which I'd like to use Drupal 8 and CiviCRM. I want Drupal 8 for its forward-compatibility. I want CiviCRM because Drupal's contrib modules have such variable readiness for Drupal 8; if Civi can work with D8 then that brings an enormous body of stable functionality into my system.

Torrance from Fuzion has done fantastic work that has got Civi working with Drupal beta 10 as recently as May 27, but it's not yet finished. He was funded initially as part of Google Summer of Code. More recently with support from Fuzion and Beat Schnyder from basx GmbH, Torrance was able to bring the code up to date with Drupal 8's beta 10. He'd like to do more, but Fuzion can't bear the cost alone.

His latest progress report is here:
https://civicrm.org/blogs/torrance/give-civicrm-drupal-8-test-out

As I understand it, more work is needed before it's production ready:
- Rules integrations
- chasing the latest D8 betas
- creating automated tests
- bug fixing

There's also the wealth of Drupal-CiviCRM modules that need revisiting.
- Webform already has a D8 version that is getting a lot of work; updating civiCRM-webform is important
- Evaluating which modules are still relevant and which have been superseded by Views and Rules
- Document what's new, revise the Book section on Drupal.

I don't have a large budget to fund this myself, nor the level of skill to code it. But I can try to fundraise! There's a big community of people out there who will need this in the future.

First step to fundraising is to establish a roadmap, and time estimates. Once we've done that, I can start a crowdfunding project on somewhere like crowdrise, and use the CiviCRM wiki to gather knowledge.

So:
- calling Torrance and Pete from Fuzion; are you up for talking roadmap and time estimates?
- calling anyone willing to think about contributing some funding?
- calling anyone willing to do some coding?
- calling anyone maintaining a current D7-Civi module that needs porting?
- calling anyone with an idea of how to fundraise and spread the word?

Jonathan

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM for Drupal 8 - taking it forward
June 15, 2015, 01:27:30 pm
Hi Jonathan - nice to hear of your interest in this. Yes there is still lots to do and I am having a conversation with Josh at CiviCRM about an MIH (make it happen) campaign for this.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM for Drupal 8 - taking it forward
June 24, 2015, 06:21:29 pm
working on a timeframe and costings for the wishlist.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jonathanjfshaw

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.6
  • CMS version: Drupal 8
  • MySQL version: Pantheon
  • PHP version: 5.5
Re: CiviCRM for Drupal 8 - taking it forward
July 07, 2015, 03:10:51 am
Hi Pete,

how's this going?

D8 is just about at the point of having a beta-to-beta upgrade path, so core is getting stable.

Jonathan

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM for Drupal 8 - taking it forward
July 07, 2015, 01:48:59 pm
Hi Jonathan - there have been some discussions with core team about an MIH for this. Will let you know when something comes from those discussions.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM for Drupal 8 - taking it forward
July 07, 2015, 01:56:49 pm
Of course if you had some funding towards this before we get the MIH launched then we can get on with tackling the list which is basically
- ensuring D8 + Civi can be installed via BuildKit
- Rules
- Entities
- Webforms
- Member Synch (replace with Rules)
- Group Synch (replace with Rules)

http://www.fuzion.co.nz/civicrm/contribute/transact?reset=1&id=2
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jonathanjfshaw

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.6
  • CMS version: Drupal 8
  • MySQL version: Pantheon
  • PHP version: 5.5
Re: CiviCRM for Drupal 8 - taking it forward
July 08, 2015, 02:45:50 am
I'm willing to put some money in play, though sadly not very much ... I will email you directly.
Jonathan

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: CiviCRM for Drupal 8 - taking it forward
August 23, 2015, 12:09:23 pm
Hello,
  Is there a forum for discussing the drupal 8 integration and results?


jonathanjfshaw

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.6
  • CMS version: Drupal 8
  • MySQL version: Pantheon
  • PHP version: 5.5
Re: CiviCRM for Drupal 8 - taking it forward
August 23, 2015, 12:27:27 pm
Not AFAIK. Let's make this thread it?

It's running alright for me, though installing it on platform.sh took some trickery.

I did forget to enable the civicrm_views module and spent some time wondering why various thing were broken until I spotted that.

Drupal's add user page is broken for me, maybe something to do with civi. I haven't reported it as an issue yet, I'm waiting for Fuzion's demo site to be updated so I can check the problem isn't just in my environment.

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: CiviCRM for Drupal 8 - taking it forward
August 23, 2015, 01:04:49 pm
Ah ya.. I have the following:

 Call to undefined function arg() in /var/www/website/drupal8/libraries/civicrm/CRM/Utils/System/Drupal.php

jonathanjfshaw

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.6
  • CMS version: Drupal 8
  • MySQL version: Pantheon
  • PHP version: 5.5
Re: CiviCRM for Drupal 8 - taking it forward
August 23, 2015, 01:12:23 pm
what's the context? what are you doing that leads to this?

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: CiviCRM for Drupal 8 - taking it forward
August 23, 2015, 01:26:47 pm
Quote from: jonathanjfshaw on August 23, 2015, 01:12:23 pm
what's the context? what are you doing that leads to this?

I followed the instructions on https://github.com/civicrm/civicrm-drupal/tree/8.x-master and get a white screen with the above error after running drush updatedb

Actually first I was getting:
FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class 'CRM_Core_Permission_%%cms%%' not found - the code for this was trying to set %%cms%% through a variable which obviously wasn't being set to Drupal so I manually hardcoded it to drupal, in civicrm/CRM/Core/Config.php:

Code: [Select]
   $userFramework = 'Drupal';
    $this->userFrameworkClass = 'CRM_Utils_System_' . $userFramework;
    $this->userHookClass = 'CRM_Utils_Hook_' . $userFramework;
    $userPermissionClass = 'CRM_Core_Permission_' . $userFramework;
    $this->userPermissionClass = new $userPermissionClass();
« Last Edit: August 23, 2015, 01:30:49 pm by seb »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM for Drupal 8 - taking it forward
August 24, 2015, 12:21:36 am
Yes there are issues with user/civi which results in you getting booted out and the uf-match record not being created.
Jonathan, you should have an account here now http://civid8.fudev.co.nz/
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jonathanjfshaw

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.6
  • CMS version: Drupal 8
  • MySQL version: Pantheon
  • PHP version: 5.5
Re: CiviCRM for Drupal 8 - taking it forward
August 24, 2015, 02:18:50 am
Thanks Pete.

Seb: I haven't encountered this, so I doubt you strictly need to patch the code in this way to get an install working. Actually, I think the cms string might be "drupal8" not "drupal" currently anyway.

Are you using D8 beta 14 and the civicrm-drupal commit labelled "beta14"? I'd strongly recommend trying that as they're tested to work together.

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: CiviCRM for Drupal 8 - taking it forward
August 24, 2015, 02:30:15 am
That's a good question.. I installed all of this a few days ago.. I have:

drupal-8.0.0-beta14.tar.gz

According to drush:
 Package       Name                                                         Type    Status            Version
 CiviCRM       Civicrm Core (civicrm)                               Module  Enabled         8.x-4.7
 CiviCRM       Civicrm Views (civicrm_views)                   Module  Not installed  4.4

as the intergration module  acquired from the result of:
git clone -b 8.x-master https://github.com/civicrm/civicrm-drupal.git civicrm

and the civicrm core is civicrm-4.6.6-drupal-20150804.tar.gz

I've set the variable to Drupal8 (see my post above) instead of Drupal, and here is the result of that:

Quote
The website encountered an unexpected error. Please try again later.
Recoverable fatal error: Argument 1 passed to Drupal\civicrm\CivicrmPageState::addCSS() must be of the type array, string given, called in /var/www/testage.ca/drupal8/libraries/civicrm/CRM/Utils/System/Drupal8.php on line 264 and defined in Drupal\civicrm\CivicrmPageState->addCSS() (line 21 of modules/civicrm/src/CivicrmPageState.php).

So I have some more digging to do, but now it's 2:30 am so I will look into it tomorrow.. Thanks  ;D

It occurs to me that if the integration module is 4.7 I maybe should use the 4.7 core, even if it's alpha?
« Last Edit: August 24, 2015, 02:35:16 am by seb »

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • CiviCRM for Drupal 8 - taking it forward

This forum was archived on 2017-11-26.