pantheon-systems / drupal-integrations

Add this project to any Drupal distribution based on drupal/core-composer-scaffold to enable it for use on Pantheon.
13 stars 13 forks source link

Drupal 11 support? #28

Open romulasry opened 3 months ago

romulasry commented 3 months ago

https://pantheon-community.slack.com/archives/C2GJ3JG7Q/p1723514564225359

macmladen commented 3 months ago

I wanted to start a Drupal 11 project so I

  1. followed instructions from Pantheon https://docs.pantheon.io/supported-drupal and started a project with Drupal 10 (ok)
  2. git pull-ed the project (ok)
  3. followed the recommendation to upgrade it to Drupal 11 locally (ok) https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-later/how-to-upgrade-from-drupal-10-to-drupal-11 .

After facing problems, I checked with drush and understood I needed PHP 8.3 and MariaDB 10.6 which I fixed too (ok) by modifying pantheon.yml.

Now I am facing the error with cache.pantheon:

[error] Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "cache.pantheon", path: "cache_tags.invalidator -> cache.pantheon". in Drupal\Component\DependencyInjection\Container->get() (line 147 of /code/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

Drush had that same issue with the command:

drush @pantheon.project.dev cr

and dashboard task failed as it can be seen in "Wordflow".

I tried 'drush cron'' as well (with the same error).

'drush status' and 'drush status:report' are both ok as they do not go through Drupal cache mechanism.

koppieesq commented 2 months ago

For anyone else who made it this far, here's the fix:

  1. Edit your root composer.json file and modify minimum-stability to equal dev
  2. Upgrade this package to 11.x:
    composer require pantheon-systems/drupal-integrations:^11
  3. Commit and push to Pantheon
  4. Profit!