Problem/Motivation

On Drupal 11.3, when I run Drupal's cron job (e.g., "drush cron"), I get this error:

PHP Fatal error:  Drupal\patternkit\Plugin\QueueWorker\LayoutQueueWorkerBase and Drupal\layout_builder\LayoutEntityHelperTrait define the same property ($sectionStorageManager) in the composition of Drupal\patternkit\Plugin\QueueWorker\LayoutQueueWorkerBase. However, the definition differs and is considered incompatible. Class was composed in /var/www/html/web/modules/contrib/patternkit/src/Plugin/QueueWorker/LayoutQueueWorkerBase.php on line 34

Steps to reproduce

- Install Drupal 11.3 with standard profile
- Add latest Patternkit 9.1.x (specifically commit 56d0f79)
- Enable patternkit module.
- Try to run cron (e.g., drush cron). Notice the above-mentioned error.

Proposed resolution

- See proposed MR.

Issue fork patternkit-3578041

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

krisahil created an issue. See original summary.

slucero’s picture

Status: Active » Reviewed & tested by the community
Parent issue: » #3542304: Patternkit 9.1.3 Release Plan
StatusFileSize
new1.61 KB

Thanks @krisahil! This a quick fix to patch the Drupal 11 compatibility issue and will be very helpful. I'm uploading as a patch file for others to easily include as a composer patch as well before we get this merged in.

Apply with Composer (cweagans/composer-patches)

If your project uses composer-patches, add the following under the extra section of composer.json:

"patches": {
  "drupal/patternkit": {
    "#3578041: Property conflict in LayoutQueueWorkerBase": "https://www.drupal.org/files/issues/2026-03-09/3578041-layout-queue-worker-base-trait-conflict.patch"
  }
}

  • slucero committed 1a0754a8 on 9.1.x authored by krisahil
    #3578041: Patched LayoutQueueWorkerBase to use the section storage...
slucero’s picture

Status: Reviewed & tested by the community » Fixed

Merged for inclusion in the 9.1.3 release.
See #3542304: Patternkit 9.1.3 Release Plan.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.