Error during cron run: TypeError</em>: count(): Argument #1 ($value) must be of type Countable|array, bool given

Created on 3 May 2023, over 1 year ago
Updated 8 May 2023, over 1 year ago

Creating the index via cron run i get the following error message - has someone an idea, what could cause this?

"The website encountered an unexpected error. Please try again later.<br /><em class="placeholder">TypeError</em>: count(): Argument #1 ($value) must be of type Countable|array, bool given in <em class="placeholder">_filter_url()</em> (line <em class="placeholder">539</em> of <em class="placeholder">core/modules/filter/filter.module</em>). <pre class="backtrace">_filter_url(&#039; foofoofoof foofoofoofoofoofoo foofoofoofoofoofoo foofoofoofoofoofoofoo foofoofoofoofoofoo foofoofoofoofoooofoofoofoo) (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer-&gt;doTrustedCallback(Array, Array, &#039;Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725&#039;, &#039;exception&#039;, &#039;Drupal\Core\Render\Element\RenderCallbackInterface&#039;) (Line: 788)
Drupal\Core\Render\Renderer-&gt;doCallback(&#039;#pre_render&#039;, Array, Array) (Line: 374)
Drupal\Core\Render\Renderer-&gt;doRender(Array, 1) (Line: 204)
Drupal\Core\Render\Renderer-&gt;render(Array, 1) (Line: 160)
Drupal\Core\Render\Renderer-&gt;Drupal\Core\Render\{closure}() (Line: 580)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 161)
Drupal\Core\Render\Renderer-&gt;renderPlain(Array) (Line: 62)
Drupal\text\TextProcessed-&gt;getValue() (Line: 210)
Drupal\search_api\Utility\FieldsHelper-&gt;extractFieldValues(Object) (Line: 176)
Drupal\search_api\Utility\FieldsHelper-&gt;extractField(Object, Object) (Line: 144)
Drupal\search_api\Utility\FieldsHelper-&gt;extractFields(Object, Array, &#039;en&#039;) (Line: 165)
Drupal\search_api\Utility\FieldsHelper-&gt;extractFields(Object, Array, &#039;en&#039;) (Line: 276)
Drupal\search_api\Item\Item-&gt;getFields() (Line: 976)
Drupal\search_api\Entity\Index-&gt;indexSpecificItems(Array) (Line: 930)
Drupal\search_api\Entity\Index-&gt;indexItems(50) (Line: 116)
search_api_cron() (Line: 250)
Drupal\Core\Cron-&gt;Drupal\Core\{closure}(Object, &#039;search_api&#039;) (Line: 405)
Drupal\Core\Extension\ModuleHandler-&gt;invokeAllWith(&#039;cron&#039;, Object) (Line: 258)
Drupal\Core\Cron-&gt;invokeCronHandlers() (Line: 136)
Drupal\Core\Cron-&gt;run() (Line: 75)
Drupal\Core\ProxyClass\Cron-&gt;run() (Line: 46)
Drupal\system\CronController-&gt;run()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 580)
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: 169)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 81)
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: 191)
Drupal\page_cache\StackMiddleware\PageCache-&gt;fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache-&gt;lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors-&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: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)

Thanks!

💬 Support request
Status

Fixed

Version

1.29

Component

General code

Created by

🇩🇪Germany sachbearbeiter

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

Comments & Activities

Production build 0.71.5 2024