9 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 ...
user avatar
  • 1,685
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-...
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....
user avatar
  • 18.2k
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'] = ...
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 ...
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 ...
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&...
user avatar
  • 18.2k
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 ...
user avatar
  • 492
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....
user avatar
  • 195
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.
user avatar
  • 803
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/...
user avatar
  • 18.2k
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 ...
user avatar
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 ...
user avatar
  • 18.2k
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
user avatar
  • 18.2k
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 ...
user avatar
  • 27.2k
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/...
user avatar
  • 195
1 vote

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.
user avatar
  • 18.2k
1 vote
Accepted

Can't install civiCRM with drupal 9.2.7

Permissions problem on the folders. As per @luke-stewart in the comments running composer with -vvv helps diagnose such problems.
user avatar
  • 18.2k
1 vote

Getting Cron to run scheduled jobs with Drupal 9 in cPanel

You can use for this drush or cv.phar. Detailed instructions for either can be found here: https://civihosting.com/blog/how-to-make-a-cron-job-for-civicrm/
user avatar
  • 668
1 vote
Accepted

Drupal 9.2 Install error

It has to do with environment variables. See https://github.com/civicrm/composer-compile-plugin/issues/17
user avatar
  • 18.2k
1 vote
Accepted

Drupal 9 Compilation Install Error

Add this line to the top level composer.json and then run composer compile: "compile-whitelist": ["civicrm/civicrm-core", "civicrm/composer-compile-lib"] Then it won't ...
user avatar
  • 18.2k
1 vote

Fatal error while building CiviCRM breadcrumb

I think the problem is in your custom theme: wig_render_template('themes/custom/b4_piosite/templates/page.html.twig', Array) (Line: 384) It's doing something that this doesn't like: Render #pre_render ...
user avatar
  • 18.2k
1 vote

No Default With Webform CiviCRM Options Field

Yes there is a bug here with it not having a 'no default' option. from memory you can do something like this. switch to static, untick the option that is beahving as 'default', save, then re-edit, set ...
user avatar
  • 27.2k
1 vote

CiviCRM Data not showing in Views - Drupal 9, Shared DB

👋 Austin -> did you install and enable CiviCRM Entity Module?
user avatar
1 vote

How to get Views to work in CiviCRM on Drupal9 with separate CiviCRM database

Do it exactly like was done in Drupal 7.. You should be able to goto path: civicrm/admin/setting/uf?reset=1 And then copy the integration code for the settings.php or settings.local.php from the "...
user avatar

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