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
Re: CiviCRM for Drupal 8 - taking it forward
August 24, 2015, 03:29:03 am
Yes, you need 4.7... we're on the bleeding edge here in every way possible.  :)
The link is in the github civicrm-drupal instructions you reference.

I believe 4.7 now includes various fixes to civicrm core for D8 that were previously applied by a patch file. I suspect 4.7 will be stable before civicrm-drupal8 is, so using it is not much of an issue.

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, 10:40:03 am
So I've installed the 4.7-alpha core, and got the undefined function arg() as above, so I manually set the call to use Drupal8 in /civicrm/CRM/Core/Config.php as such:

Code: [Select]
  private function _setUserFrameworkConfig($userFramework) {
    $userFramework = "Drupal8";
    $this->userFrameworkClass = 'CRM_Utils_System_' . $userFramework;
    $this->userHookClass = 'CRM_Utils_Hook_' . $userFramework;
    $userPermissionClass = 'CRM_Core_Permission_' . $userFramework;
    $this->userPermissionClass = new $userPermissionClass();
    ...

So far it seems to have opened the Civicrm Home instead of throwing an error now.. Of course, genius that I am, I don't have main page content in my theme template yet.. but so far seems like that did the trick!

I would assume there would be a forum somewhere where people are discussing their drupal8-civicrm stories?  This probably is the wrong place for this stuff, I recognize

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, 11:04:12 am
If you find such a forum, please tell me, but I've not heard of it. There's very very few of us using D8 with civi yet.

I look forward to hearing stories of how you get on!

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, 11:25:51 am
Well I made a thread in the Integration sub-forum, since that seems like the logical place to discuss that sort of stuff:

https://forum.civicrm.org/index.php?topic=36703.0


scotv

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
    • fastest web browser for windows 7
  • CiviCRM version: 4.6.8
  • CMS version: 7
  • MySQL version: 5.6
  • PHP version: 5.2
Re: CiviCRM for Drupal 8 - taking it forward
September 01, 2015, 11:01:20 pm
I tried civicrm with drupal 8 on pinteros theme. it works but there are a lot of warnings and some deprecated errors.

Will it be ok to ignore these and hide such messages??
Scot V
Web Development Head
Slimjet
fastest web browser for windows 7

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
September 02, 2015, 02:14:04 am
Hi Scot, I've not tried a theme other than Bartik or heard from anyone who has. You may be the first ... let us know if you learn anything.
Jonathan

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.