I can also confirm that patch #2 resolves this issue. I tested it with Drupal 10.3.10, PHP 8.3.8, and layout_builder_st alpha3.
millerrs β made their first commit to this issueβs fork.
I encountered the same error after updating several sites to Drupal 10.3. Applying the change from the MR resolved the issue.
This module has a few issues that require patches to work correctly. However, it allows you to translate both inline blocks and block plugins in layout overrides β .
Issues started appearing with Drupal 10.2, so if you were using an earlier version, you wouldn't have been affected.
You need at a minimum these patches:
https://www.drupal.org/project/layout_builder_st/issues/3411037
π
Contextual links for translation are removed by core
RTBC
https://www.drupal.org/project/layout_builder_st/issues/3420063
π
Error: Call to a member function getConfig() OverridesSectionStorage.php
Active
If you are on Drupal 10.3 you will also need the following patch to translate block plugins:
https://www.drupal.org/project/layout_builder_st/issues/3463435 π Drupal\Component\Plugin\Exception\PluginNotFoundException: The "block.settings." plugin does not exist Active
I don't use this module to translate inline blocks (your basic block), so you might need another patch. But by adding the ones I mentioned, you will at least start to see the contextual link and can go from there. Hopefully, some of these fixes will get merged soon, so you don't need so many patches to get the module to work.
millerrs β created an issue.
Thanks @johnlutz and @mark_fullmer! I encountered this issue after upgrading to 10.3.0, and MR12 worked. A new release would be great to avoid needing a patch or using the dev version.
@nightlife2008, can you help with releasing version 2.1.0?
As I was creating a fork, I noticed that a fix has already been committed in #3259885 π "Filter by block name" does not work in the tray/list of blocks is broken Fixed . Can a maintainer create a new release so that the fix gets in for new users of the module? I will mark as duplicate and close.
millerrs β created an issue.
I can verify that the error occurs after upgrading to Drupal 10.2.3 (my PHP version is 8.2), and it is addressed by the most recent change to the MR.
Saved me as well. Content editors reported this issue after updating to Drupal 10.2. A big thank you to @Hydra. Also, let's escalate the severity of this issue. Without this patch, users cannot translate layouts, which is a key functionality of this module.
Another RTBC +1. It would be great to get this in the 2.x branch.
I bumped into the same problem (Drupal 9.5.10/PHP 8.1). Just like josh.stewart, switching to 3.3.x sorted it out for me. Here's how I did it: composer require algolia/algoliasearch-client-php:~3.3.2
The culprit behind the need to roll back is the psr/http-message dependency. From what I can tell, Drupal 9.5x blocks updating to a version that would fix this.
Can also confirm that #4 works.