🇨🇦Canada Captain_Canuck
This is the patch I am using, https://git.drupalcode.org/project/redirect/-/merge_requests/70.diff
🇨🇦Canada Captain_Canuck
Captain_Canuck → created an issue.
🐛 | Layout Builder Symmetric Translations | Error: Call to a member function getConfig() OverridesSectionStorage.php
🇨🇦Canada Captain_Canuck
Patch #15 applied for me in Drupal 10.2.4, and patch #23 had several failed hunks:
Downloading https://www.drupal.org/files/issues/2024-03-20/3420063-23.patch
patch '-p1' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
Executing command (CWD): patch '-p1' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
|index 4f020bab8d..704b062f05 100644
|--- a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
|+++ b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patch '-p0' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
Executing command (CWD): patch '-p0' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
|index 4f020bab8d..704b062f05 100644
|--- a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
|+++ b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patch '-p2' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
Executing command (CWD): patch '-p2' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
|index 4f020bab8d..704b062f05 100644
|--- a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
|+++ b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patch '-p4' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
Executing command (CWD): patch '-p4' --no-backup-if-mismatch -d 'docroot/modules/contrib/layout_builder_st' < '/tmp/65fb5f91524e1.patch'
patching file src/Plugin/SectionStorage/OverridesSectionStorage.php
Hunk #1 FAILED at 380.
1 out of 1 hunk FAILED -- saving rejects to file src/Plugin/SectionStorage/OverridesSectionStorage.php.rej
💬 | Drupal core | Drupal\Component\Plugin\Exception\MissingValueContextException: Required contexts without a value: entity in Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping() (line 150 of /var/www/html/web/core/lib/Drupal/Core/Plugin/Context/ContextHandler
🇨🇦Canada Captain_Canuck
I have also had this exact same error. What patch did you use to resolve it?