Illegal offset type in ConfigCompare getChangelist()

Created on 20 March 2024, 3 months ago

Problem/Motivation

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-&gt;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-&gt;toolbarAjax()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength-&gt;handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 270)
Drupal\shield\ShieldMiddleware-&gt;bypass(Object, 1, 1) (Line: 137)
Drupal\shield\ShieldMiddleware-&gt;handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState-&gt;handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>

Steps to reproduce

  1. Produce a rename change
  2. Wait until the function process that rename change

Proposed resolution

Add ->render() at the end of the TranslationMarkup object to get the string instead of the object

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain Jezusito

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

Comments & Activities

Production build 0.69.0 2024