6

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 you'll want to think about are: Drupal users If you are migrating drupal users and preserving Drupal User Ids, and drupal roles and user role mappings then you ...


6

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-patching true composer config minimum-stability dev B. Get CiviCRM composer require civicrm/civicrm-core:5.35.0 civicrm/civicrm-packages:5.35.0 civicrm/civicrm-...


3

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 5.42 https://github.com/civicrm/civicrm-core/tree/5.42 The tl;dr on lab.civicrm.org: If you're affected by this and need an immediate fix, run composer require' ...


3

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 site. I would fix the civicrm_menu issue separately. You should be able to restore a copy from a fresh install, then disable/re-enable any extension, which ...


2

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": "dev" into composer.json. Also don't run composer as the root user.


2

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'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/'; $civicrm_paths['...


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.


2

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/scssphp=1.6 composer.phar compile


1

It has to do with environment variables. See https://github.com/civicrm/composer-compile-plugin/issues/17


1

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/en/latest/general/requirements/ 2-First Install Drupal 9 and have it working 100%. 3-Then use the cv command line tool (my preference) to install civi, ...


1

It also looks for civicrm.settings.php and there's also a civicrm_install_canary table.


1

Permissions problem on the folders. As per @luke-stewart in the comments running composer with -vvv helps diagnose such problems.


1

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 back to dynamic and resave. does that work for you? Other things that may work depending on the component type Open 'source' and in the YAML find in the ...


1

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 try to prompt you next time for upgrades either.


1

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 callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https:...


1

👋 Austin -> did you install and enable CiviCRM Entity Module?


1

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 "Views Integration settings"


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