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

Created on 20 February 2025, 3 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
    3 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
    2 months ago
    Total: 145s
    #445610
  • Pipeline finished with Success
    2 months ago
    Total: 144s
    #445613
  • Pipeline finished with Success
    2 months ago
    Total: 603s
    #446956
  • Pipeline finished with Success
    2 months ago
    Total: 162s
    #446972
  • Pipeline finished with Success
    2 months ago
    Total: 764s
    #448026
  • Pipeline finished with Failed
    about 2 months ago
    Total: 182s
    #452548
  • Pipeline finished with Skipped
    about 1 month ago
    #470439
  • Pipeline finished with Success
    about 1 month ago
    Total: 188s
    #474056
  • Pipeline finished with Success
    about 1 month ago
    Total: 185s
    #474057
  • Pipeline finished with Success
    about 1 month ago
    Total: 258s
    #474068
  • Pipeline finished with Success
    about 1 month ago
    Total: 212s
    #474079
  • Pipeline finished with Success
    about 1 month ago
    Total: 178s
    #474089
  • Pipeline finished with Canceled
    28 days ago
    Total: 219s
    #477679
  • Pipeline finished with Success
    28 days ago
    Total: 501s
    #477682
  • Pipeline finished with Success
    28 days ago
    Total: 524s
    #477688
  • Issue was unassigned.
  • Status changed to Needs review 25 days 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
    11 days ago
    Total: 154s
    #491741
  • Pipeline finished with Success
    11 days ago
    Total: 140s
    #491742
  • Pipeline finished with Failed
    3 days ago
    Total: 241s
    #497705
  • Pipeline finished with Success
    3 days ago
    Total: 265s
    #497718
Production build 0.71.5 2024