- Issue created by @jesus_md
Huh, thanks -- I guess this always been a bug. Let's just use sprintf here since it's simpler and there's no need for this to be a renderable object.
- Status changed to Needs review
8 months ago 2:06pm 20 March 2024
The website encountered an unexpected error. Try again later.<br>
<br>
<em class="placeholder">TypeError</em>
: Illegal offset type in <em class="placeholder">Drupal\config_patch\ConfigCompare->getChangelist()</em>
(line <em class="placeholder">270</em>
of <em class="placeholder">modules/contrib/config_patch/src/ConfigCompare.php</em>
). <pre class="backtrace">Drupal\config_patch\Controller\ConfigPatchToolbar->toolbarAjax()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 270)
Drupal\shield\ShieldMiddleware->bypass(Object, 1, 1) (Line: 137)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
Add ->render() at the end of the TranslationMarkup object to get the string instead of the object
Needs review
3.0
Code
Huh, thanks -- I guess this always been a bug. Let's just use sprintf here since it's simpler and there's no need for this to be a renderable object.