Skip to main content
Share Your Experience: Take the 2024 Developer Survey
15 votes
Accepted

Moving existing CiviCRM to new Drupal instance + upgrade to Drupal 9

For the Drupal 7 to Drupal 9 part of the upgrade you are best to look for help with the Drupal Community. But sounds like you have this in hand. The CiviCRM specific part of the D7 -> D9 the things ...
Luke Stewart's user avatar
  • 1,890
7 votes
Accepted

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

Ok here are the steps! I'm on a Mac/MAMP and I use PhpStorm A. Get Drupal composer create-project drupal/recommended-project:8.9.13 d8civicrm.local cd d8civicrm.local composer config extra.enable-...
KarinG - Semper IT's user avatar
4 votes
Accepted

Drupal 9/10: How to create Event Location + Events using CiviCRM Entity

seems doable using https://www.drupal.org/project/inline_entity_form. Steps I followed was: Enable Location Block, Address & Event Entities in CiviCRM Entity Settings page. Ensure module weight ...
jitendra - fuzion's user avatar
3 votes
Accepted

Is the use of API4 already recommended?

See https://lab.civicrm.org/dev/core/-/issues/2486 but I believe all of those things are deprecated anyway (or on the way to being deprecated) and the idea is to use Order and Payment: https://docs....
Demerit's user avatar
  • 23.1k
3 votes

Upgrade Drupal 7 to Drupal 9

Have you updated the civicrm.settings.php to include new location for $civicrm_root? Add below entries in your civicrm.settings.php $civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = ...
Pradeep Nayak's user avatar
3 votes
Accepted

Drupal 9 - CiviCRM Compilation Error

OK. Looks like I am not the only one with this issue. A newer version of scssphp (v.1.7) appears to be the culprit: https://lab.civicrm.org/dev/drupal/-/issues/164#note_65206 Patch applied to CiviCRM ...
PaulC's user avatar
  • 51
3 votes

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

This sounds a bit dicey, but fortunately I think there's a simpler solution. My answer on migrating CiviCRM to WordPress is generic for moving CiviCRM to ANY new CMS - even the same CMS on a different ...
Jon G - Megaphone Tech's user avatar
3 votes

Enable CiviCase component programatically

Calling CRM_Core_BAO_ConfigSetting::enableComponent("CiviCase"); will enable it if not enabled already.
Demerit's user avatar
  • 23.1k
3 votes

Why does Drupal 9 complain when my CiviCRM cron runs?

I have one Drupal 9 site with this problem, and several more that don't. I don't know the root cause of the issue, but I know that adding --level=cms-full to the cv command fixes the issue.
Jon G - Megaphone Tech's user avatar
3 votes

Is there a report that shows what is duplicated between contacts ? For example: contacts sharing an email, or a phone number

You can use searchkit to identify and report exactly who has duplicate fields and what the value is like the following: Search by contact entity for the field, in this case email, and sort by count &...
barbaraec's user avatar
2 votes
Accepted

Cannot install CIVICRM on Drupal 9

You should replace 5.29 in the instructions with the current version. Right now it's 5.35. And I thought the docs were updated for this but for drupal 9 you also need to add "minimum-stability&...
Demerit's user avatar
  • 23.1k
2 votes

ckeditor + Drupal9 gives 403 Forbidden when browsing server

I had exactly the same issue and solved the problem with the new Summernote extension. We needed for various reasons to have access to the underlying code (the old 'Source' toggle to see the ...
ChumKui's user avatar
  • 777
2 votes

ckeditor + Drupal9 gives 403 Forbidden when browsing server

To get ckeditor 4 working in Drupal 9, you have to look at the http error you get: 404: means the library cannot be found 403, 500: means an access / permission problem Personally, I had the 404 ...
AlainB's user avatar
  • 552
2 votes

ckeditor + Drupal9 gives 403 Forbidden when browsing server

For two days, i couldn't get kcfinder working. After clicking on "browse server" it tries to load the link below and then gives http 403 forbidden. libraries/civicrm/packages/kcfinder/browse....
salah-1's user avatar
  • 205
2 votes

CiviCRM Break After Upgrade to Drupal 9.2

I resolved this by upgrading to CiviCRM 5.39.0. There were a couple of conflicts with libraries with Drupal modules but nothing we could not live without.
Josh's user avatar
  • 887
2 votes
Accepted

Installing on Drupal 9 - compilation failures and resource url problems (may be related)

The compile fix was only backported to 5.41. If you want 5.36 you need to also require scssphp 1.6 as a workaround. https://lab.civicrm.org/dev/drupal/-/issues/164 composer.phar require scssphp/...
Demerit's user avatar
  • 23.1k
2 votes
Accepted

How does drush:site-install recognize a previous civi installation?

It also looks for civicrm.settings.php and there's also a civicrm_install_canary table.
Demerit's user avatar
  • 23.1k
2 votes

Invite Existing Contacts to Create Linked Drupal User Account

you will need to either use Drupal registration form(/user/register) or profile with user registration turned on. The new account notification should be received if your Drupal user settings have it ...
Pradeep Nayak's user avatar
2 votes

Installing CiviCRM on a Drupal 9 site with Drush 11 conflict due to symfony/filesystem ~4.4 requirement

The solution here is to either install CiviCRM before drush - or if installing on an existing site or if that fails you can help composer pick the right version via composer require civicrm/civicrm-{...
Luke Stewart's user avatar
  • 1,890
2 votes

Composer install of ESR (Extended Security Release)?

After you've subscribed to the ESR service, you'll get access to a private group on the civicrm gitlab install, with the instructions here: https://lab.civicrm.org/esr/examples There are actually ...
Alan Dixon's user avatar
  • 6,851
2 votes

Angular is being loaded twice after 5.56 update Civi menu won't load

According to https://lab.civicrm.org/dev/core/-/issues/2975 there is one extra command to run after. Have created PR for documentation https://lab.civicrm.org/documentation/docs/sysadmin/-/...
CiviTeacher's user avatar
2 votes

CiviCRM in a separate database keeps testing the Drupal database on update

Do you have civicrm_entity installed? See https://www.drupal.org/project/civicrm_entity/issues/3299224#comment-15013847
Demerit's user avatar
  • 23.1k
2 votes

Why does Drupal 9 complain when my CiviCRM cron runs?

So, if your civicrm system jobs are all running, then the question is about where the extra Drupal error email is coming from (regardless of whether it gets emailed to you or just displayed on the ...
Alan Dixon's user avatar
  • 6,851
1 vote

Is -TypeError: array_flip(): Argument #1 must be of type array, string given- a php 8, Drupal 9, civicrm 5.55.2 or all combined Issue?

I'm guessing this has been a bug for a while, not strictly related to php 8, it just crashes with php 8. Can you file an issue at https://lab.civicrm.org with the stack trace? By the way drupal 9 will ...
Demerit's user avatar
  • 23.1k
1 vote

Drupal 9 Create User from contact the email field is hidden

The contact on the civi side needs to have an email address.
Demerit's user avatar
  • 23.1k
1 vote
Accepted

In drupal 9 i have try to install Civicrm. But it asking "CiviCRM: Database: Database does not support creation of triggers" how to fix this error?

Ask your hosting provider to give the mysql user account the TRIGGER privilege: See https://docs.civicrm.org/installation/en/latest/general/requirements/#mysql-permissions
Demerit's user avatar
  • 23.1k
1 vote

Drupal 9 linking CiviCRM Contribution pages to Webforms

The whole approach to 'using Contribution pages' was done away with in recent webform_civicrm and the whole configuration is now available within the webform_civicrm configuration. Unfortunately it ...
petednz - fuzion's user avatar
  • 28.3k
1 vote

Transfer a D7 view sql query to a D9 view

Now that the Drupal Views Migration has been released it would be worth trying that, especially if you have several. In terms of your actual question, I think the answer is No. We have just started ...
petednz - fuzion's user avatar
  • 28.3k
1 vote

Issues with installing CiviCRM onto a Drupal 9 instance

You can try: back up the site and files copy the files to a local drive on your computer do the commands to download the civi files use the hosting provider's control panel to replace the files on ...
Demerit's user avatar
  • 23.1k
1 vote

Moving existing CiviCRM to new Drupal instance + upgrade to Drupal 9

I have setup CiviCRM with drupal 8 and 9 few times and here is how i would do it. Prep 1- Check your machine supports at-least the minimum PHP and MySQL versions https://docs.civicrm.org/installation/...
salah-1's user avatar
  • 205

Only top scored, non community-wiki answers of a minimum length are eligible