Fix installation error with JSON:API Extra in custom Drupal 11 profiles due to missing synthetic service `kernel`

Created on 20 February 2025, 5 months ago

Problem/Motivation

Facing an error when installing Drupal 11 and enabling the module before Drupal has finished installing.

Steps to reproduce

When installing JSON:API Extra while installing Drupal 11 in a custom profile
Then I will hit the following error

Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service. in Symfony\Component\DependencyInjection\ContainerBuilder->createService() (line 1093 of /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php).

Proposed resolution

Switch from using the "kernel.environment" service to change on the environment

Remaining tasks

  • File an issue
  • MR
  • Test
  • Review

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Pipeline finished with Skipped
    about 2 years ago
    #11187
  • Issue created by @Rajab Natshah
  • Pipeline finished with Success
    5 months ago
    Total: 278s
    #430157
  • 🇯🇴Jordan Rajab Natshah Jordan

    Attached a static jsonapi_extras--2025-02-21--3508142--mr-65.patch file.
    From this point of MR65.
    To be used with Composer Patches

  • Pipeline finished with Success
    4 months ago
    Total: 145s
    #445610
  • Pipeline finished with Success
    4 months ago
    Total: 144s
    #445613
  • Pipeline finished with Success
    4 months ago
    Total: 603s
    #446956
  • Pipeline finished with Success
    4 months ago
    Total: 162s
    #446972
  • Pipeline finished with Success
    4 months ago
    Total: 764s
    #448026
  • Pipeline finished with Failed
    4 months ago
    Total: 182s
    #452548
  • Pipeline finished with Skipped
    3 months ago
    #470439
  • Pipeline finished with Success
    3 months ago
    Total: 188s
    #474056
  • Pipeline finished with Success
    3 months ago
    Total: 185s
    #474057
  • Pipeline finished with Success
    3 months ago
    Total: 258s
    #474068
  • Pipeline finished with Success
    3 months ago
    Total: 212s
    #474079
  • Pipeline finished with Success
    3 months ago
    Total: 178s
    #474089
  • Pipeline finished with Canceled
    3 months ago
    Total: 219s
    #477679
  • Pipeline finished with Success
    3 months ago
    Total: 501s
    #477682
  • Pipeline finished with Success
    3 months ago
    Total: 524s
    #477688
  • Issue was unassigned.
  • Status changed to Needs review 3 months ago
  • 🇩🇪Germany tstoeckler Essen, Germany

    I opened 🐛 Routes are incorrect after installation from config Active for a related issue and just opened a merge request over there. Just to be sure, can you check if the patch there solves your issue? I was having a different problem, so not entirely sure.

  • Pipeline finished with Canceled
    2 months ago
    Total: 154s
    #491741
  • Pipeline finished with Success
    2 months ago
    Total: 140s
    #491742
  • Pipeline finished with Failed
    2 months ago
    Total: 241s
    #497705
  • Pipeline finished with Success
    2 months ago
    Total: 265s
    #497718
  • Pipeline finished with Success
    about 2 months ago
    Total: 200s
    #501983
  • Pipeline finished with Skipped
    about 2 months ago
    #509721
  • Pipeline finished with Success
    about 1 month ago
    Total: 147s
    #514442
  • Pipeline finished with Success
    about 1 month ago
    Total: 148s
    #514447
  • Pipeline finished with Skipped
    about 1 month ago
    #516564
  • Pipeline finished with Success
    about 1 month ago
    Total: 569s
    #520967
  • Pipeline finished with Success
    about 1 month ago
    #521564
  • Pipeline finished with Success
    about 1 month ago
    Total: 409s
    #522444
  • Pipeline finished with Canceled
    24 days ago
    Total: 48s
    #527978
  • Pipeline finished with Success
    17 days ago
    Total: 233s
    #533398
  • Pipeline finished with Failed
    17 days ago
    Total: 230s
    #533401
  • Pipeline finished with Canceled
    17 days ago
    Total: 131s
    #533402
  • Pipeline finished with Canceled
    17 days ago
    Total: 247s
    #533404
  • Pipeline finished with Success
    17 days ago
    Total: 310s
    #533410
Production build 0.71.5 2024