Questions tagged [drupal-8]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
63 views

Why aren't my tokens working in mosaico?

I have created a custom Drupal 8/9 module that defines hook_civicrm_tokens and hook_civicrm_tokenValues to provide tokens to CiviCRM. It works when not using mosaico, but fails (the tokens are ...
  • 6,163
1 vote
0 answers
25 views

Get Drupal View to Display Label from Numeric Custom Select Field

I have a custom field in Civi that is a numeric select field. The select field values are numeric but the associated labels are text. I have created a Drupal view that displays the select field but it ...
  • 882
0 votes
0 answers
33 views

How to control order of added CSS stylesheets in Drupal 9 (And probably D8)?

I've found I can add CSS to pages like so: /** * Implements hook_civicrm_coreResourceList(). */ function MYEXTENSION_civicrm_coreResourceList(&$items, $region) { if (!CRM_Aah::isActive()) { ...
  • 3,688
0 votes
1 answer
218 views

Upgrade Drupal 7 to Drupal 9

I am upgrading Drupal 7 to Drupal 9 and trying to copy over my CiviCRM database. My Drupal 9 install is fresh. I used the instructions at https://docs.civicrm.org/installation/en/latest/drupal8/ to ...
  • 825
0 votes
0 answers
19 views

Is it appropriate for my use case?

I have a use case which requires following Customer Front End, and Back End (Leads Management, Pricing / RFQ ,Invoicing and Finance management, inventory management, , Supplier Management) Is civicrm ...
  • 101
1 vote
1 answer
35 views

Webform Civicrm Custom Fields across Multiple Contacts not working in Drupal 7 and Drupal 8

I created a custom fieldset in CiviCRM, with the following field types, File Field Two Date Fields Two Country Fields With a "Tab with table" style A webform with CiviCRM Integration and ...
1 vote
1 answer
46 views

Drupal View Not Rendering HTML From Activity Email Details Field

I am trying to display in a Drupal (8) view the content of emails that have been sent to contacts using the contact Send Email action. I am using the details field from the activity to show the ...
  • 882
2 votes
1 answer
140 views

The "cmsBaseUrl" is not set according to the information in civicrm.settings.php

Error: When I check the installation requirements (cv core:check-req) I get an error message that says: The "cmsBaseUrl" (http://localhost/usr/local/bin/usr/local/bin/) is unavailable or ...
0 votes
1 answer
234 views

Compilation error when installing on Drupal8

Following install guide I get fatal error at compilation tasks in composer require civicrm/civicrm-core:'~5.35'. The setup is on Aegir with Drupal 8.9 and drupal/recommended-project composer template, ...
  • 387
4 votes
2 answers
59 views

How to use webform to register a new user on Drupal 8/9 and link to contact in CiviCRM

I have a need to use Webform (using the Webform CiviCRM module) in Drupal 8 to register a new user and their organisation in Civi and at the same time create the user account in Drupal and link it to ...
  • 882
3 votes
1 answer
36 views

Is Membership payment on Drupal 8 Webform supported yet?

I am trying to configure a Drupal 8 Webform to support payment for Memberships, but there seems no connection between the Membership field and the Payment fields. On D7, when configuring a ...
2 votes
1 answer
679 views

Call to undefined function user_load() using Drupal 9 and api3?

Full error message: Error: Call to undefined function user_load() in CRM_Utils_System_DrupalBase->getUserObject() (line 558 of /var/www/drupal/vendor/civicrm/civicrm-core/CRM/Utils/System/...
  • 6,163
1 vote
0 answers
18 views

VBO (Views Bulk Operations) with civicrm based Views for d8 and d9

Just wondering if anyone has any evidence of this working with d8/d9
  • 27.3k
1 vote
1 answer
134 views

Trying to migrate data from Drupal 7 to new install on Drupal 9

Isn't it possible to just copy tables of contacts, groups, mailings and their related data into the new install? I'm trying to figure out which tables contain essential data on contacts, activities, ...
1 vote
1 answer
43 views

Drupal 8 version of CiviVRM Membership Roles Sync?

Is there a Drupal 8 version of the CiviCRM Membership Roles Sync module, or is one planned? I can't see it, or any opportunity to configure an equivalent facility.
2 votes
1 answer
22 views

In Drupal 8 Webform_Civicrm how do I clone a Contact?

Running Drupal and Webform_civicrm 8.x-5.0-beta4. How do I clone a Contact? If I create one Contact, then change the number of Contacts from 1 to 2 (or more) I get the message: Tip: Consider using the ...
1 vote
1 answer
24 views

What is the Drupal 8 Webform url for autofill CiviMail linkage

In D7 Webform Civicrm integration, under Additional Options for Civi configuration there is this link To have this form auto-filled for anonymous users, enable the "Existing Contact" field ...
  • 1,139
1 vote
1 answer
30 views

Where is the 'Recent Items' block in Drupal 8

I have CiviCRM 5.33.2 on Drupal 8.9.12. On Drupal 7, CiviCRM created a number of Drupal Blocks that could be displayed according to the Theme configuration, including the very useful 'Recent Items'. ...
1 vote
1 answer
23 views

CiviContribute/CiviCRM overrides content entered into a custom field each time a donation is made

Hopefully I can explain this so it makes sense. :) We have customers that have donation pages (and events) that they use custom fields with, but when someone completes the custom field once, it does ...
  • 125
0 votes
0 answers
17 views

How does one install a new custom field?

After adding a Custom Field on Activity -> I get this message on the status report. How does one install a new custom field?
1 vote
0 answers
20 views

How to filter contacts according to tags in views in Drupal 8 with CiviCRM entity?

I want to be able to filter organizations by tags. However, the reference in "Relations" is not available for tags even though it exists for groups : "CiviCRM Tags uses created_id" ...
  • 11
0 votes
2 answers
81 views

Does Stripe and CiviCRM work on Drupal 8 and Webform?

I have installed: Stripe 6.5.5; CiviCRM 5.32.2; Drupal 8.9.11; Webform 6.0.0; Webform_civicrm 8.x-5.0-beta4. When I try to make a (test) Donation payment I get the error: Error Unable to complete ...
1 vote
0 answers
91 views

CiviCRM Drupal 8 installation fails - Install of pear/validate_finance_creditcard failed

I've been trying (for what seems like weeks now!) to install CiviCRM under Drupal 8 on a hosted cpanel server following the instructions here: https://docs.civicrm.org/installation/en/latest/drupal8/. ...
3 votes
2 answers
180 views

Install or upgrade CiviCRM using Composer 2?

Has anyone documented using Composer 2 with an install and/or upgrade of Drupal 8 + CiviCRM? I'm getting this error: - civicrm/composer-downloads-plugin[v2.0.0, ..., v2.1.1] require composer-...
  • 6,163
1 vote
1 answer
74 views

How do I access drush commands specific to CiviCRM?

I have installed CiviCRM 5.31 on Drupal 8 with the following set of commands according to the official Drupal and CiviCRM documentation: cd /var/www composer create-project drupal/recommended-project:...
  • 113
1 vote
1 answer
300 views

How can I run the Drupal 9 Webform CiviCRM unit tests on my local?

D9 Webform CiviCRM now has automated functional javascript testing! How can I run these tests on my local?
3 votes
2 answers
301 views

Why can't the asset builder find

With Drupal 8 + CiviCRM 5.30.1 The asset builder is unable to find the crm-menubar.css file, i.e. this url: https://example.org/civicrm/asset/builder?an=crm-menubar.css gives me: Unrecognized asset ...
  • 6,163
4 votes
2 answers
366 views

What is the correct REST URL in Drupal 8 (or 9)?

I know there's been a lot of work to deprecate the extern endpoints in CiviCRM, and the extern endpoints don't work in Drupal 8 without a lot of finagling. The documentation isn't updated to reflect ...
1 vote
3 answers
185 views

CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_alter_drupal_entities"

After upgrading CiviCRM to civicrm-asset-plugin 1.1, civicrm-core 5.29.1, civicrm-drupal-8 5.29.1, and civicrm-packages 5.29.1 I started getting "CiviCRM has not bootstrapped sufficiently to ...
  • 825
2 votes
1 answer
44 views

Links for the DialogFlow extension go to Drupal 404 Page

I'm on Drupal 8. Just installed DialogFlow, but when I go to DialogFlow>Settings I leave CiviCRM and get a Drupal 404 page- "Page not found". Any ideas?
1 vote
1 answer
46 views

Why isn't CiviMail tracking my opens?

It happened after a recent upgrade to 5.27+, using Drupal 8.
  • 6,163
0 votes
1 answer
26 views

Is there a Donate Now type button that I can just plug into my drupal site?

I am interested in creating a donate button that can be used on drupal8 as well as if someone wanted to add it to their own site. I saw https://wiki.creativecommons.org/wiki/...
  • 1
0 votes
1 answer
47 views

How to display CiviCRM Custom Fields in a Drupal 8 View

I've been not very experienced with CiviCRM. I try to get CiviCRM custom fields displayed in Views. I've installed Drupal 8.9.3., CiviCRM 5.28.3, CiviCRM Entity 8.x-3.0-beta1. Drupal and CiviCRM run ...
  • 11
1 vote
2 answers
47 views

Contact Us form based on smart group list

I am getting started with Webforms on Drupal and am looking to create a Contact Us form. I would like a single form that would allow the user to select the Send To field based on a Smart Group. The ...
2 votes
1 answer
219 views

Upgrading CiviCRM under Drupal 8: How can I get around this error?

I'm guessing that the upgrade process for CiviCRM under Drupal 8 is something like this: Use composer require to get the latest version of the package. Navigate to the database update URL through the ...
  • 1,672
0 votes
1 answer
23 views

Where is the documentation to upgrade CiviCRM under Drupal 8?

As of now, there is official documentation for installing CiviCRM under Drupal 8, and there is official documentation for upgrading CiviCRM under various other CMSs, but I can't find any for upgrading ...
  • 1,672
0 votes
1 answer
29 views

D8 - can't view Contributions after upgrade to 5.28.x

When trying to View a Contribution (any Contribution) I'm getting this error on one of my D8 test sites. Error: Class 'Brick\Money\Money' not found in CRM_Utils_Money::subtractCurrencies() (line 142 ...
4 votes
1 answer
133 views

Where is the documentation for installing CiviCRM with Drupal 8 or for upgrading a Drupal 7 system with Civi to Drupal 8

This question is being asked so that it becomes the go to Answer for documentation / installation / migration questions hopefully.
  • 27.3k
2 votes
1 answer
33 views

french Installation of civicrm 5.27.2 on drupal 8

i want to install civicrm in french in my drupal 8.9.2 website. after following the instruction in this website https://lab.civicrm.org/dev/translation/-/wikis/Administrator-Guide. it's not work for ...
2 votes
1 answer
42 views

Webform Select List using Existing Contact

I have used "Existing Contact" Field in the Webform. I want to list few contacts using select box instead of AutoComplete using Filter. Edit Field show different Widget to show the contacts, ...
0 votes
1 answer
50 views

Anyone using Aegir to manage sites?

Not really a Civi specific question but someone here might have suggestions on the best place to discuss. Got the basics working. Now I need to figure out how to best add in or update modules and ...
  • 135
0 votes
1 answer
47 views

There is so much old stuff on the interweb.... D8 and CiviEntities / Calendar integrations?

Just did a D-8.9.2 w/ CiviCRM and am struggling with the some very very old documentation. Is civi entity still a valid module to help with crossing civi data --> drupal 8? I tried to composer ...
  • 135
1 vote
2 answers
79 views

Drupal 8 CiviCRM Entity and Views activities

We have been working on Views, with Civi Entity, on Drupal 8. We are having an issue a list of Activities and filters. We only want to load Activities where the source contact is a particular ...
1 vote
4 answers
181 views

New D8 / Civi install. First d8 then added Civi. Civi Menus not showig up

I installed D8 first then Civi and it seems like it is working if I manually put the url comonents after the http://focal-civi.domain.org/civicrm/{manually-add} but the menu is not showing up. Anyone ...
  • 135
0 votes
1 answer
13 views

Drupal 8 / CiviCRM ; Directories that need to be manually created?

I've created a d8/civi site on all three of bionic/eoam/focal and now have worked out the variances between them to the state that I now have an operational
  • 135
0 votes
1 answer
23 views

Why am I getting mangled menus and why can't CiviCRM find its own /ext directory?

My composer build D8/CiviCRM instance looks great on my local server where I built it - but then when I add it all to git and push it to a production server -> it looks like this: menus are messed ...
3 votes
1 answer
114 views

Where can I find Documentation for Drupal 8 Webform CiviCRM module?

Would love to see official docs/examples with lots of screenshots!
1 vote
1 answer
70 views

CiviCRM URL issue: CiviCRM theme is not loading after CiviCRM update to 5.26.1 version

After upgrading the CiviCRM to the latest version 5.26.1, the CiviCRM theme is not loading. I have checked on the Browser Console and I saw a CSS and JS file errors. Some of the errors are given below ...
5 votes
1 answer
277 views

Drupal 8: How do I shift a project/site from using the roundearth installation method to the CiviCRM official composer asset plugin

From an existing site set up using the roundearth composer plugin method as detailed -> https://www.mydropwizard.com/blog/better-way-install-civicrm-drupal-8 composer create-project roundearth/...
  • 1,695
1 vote
1 answer
68 views

500 Error When Migrating To Drupal 8

I have followed the great instructions on the question Can I upgrade a drupal 7 + civi site to drupal 8? but I am running into a road block. The first time I loaded Civi it loaded without my database ...
  • 825