Uncaught PHP Exception TypeError: "Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in /core/lib/Drupal/Core/Render/Renderer.php on line 797" at /core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php line 57
This issue has been occurring since I upgraded Drupal (From Drupal 9.5.5 to Drupal 10.1.5). This issue is only coming after loggedin.
This issue is happening in AWS but not in my local not sure why this is happening.
User interface changes
Release notes snippet
Thanks in advance.
Comments
Comment #2
cilefen commentedThis looks like a duplicate of #3224723: Issue with doTrustedCallback() must be callable, array given. Please confirm that.
Comment #3
rahul_sankrit commentedYes, but the Drupal version is different.
Comment #4
cilefen commentedAll I would do is ask the same questions that contributors asked on that issue.
It is similar to #3386192: Uncaught PHP Exception TypeError: "Drupal\\Core\\Render\\Renderer::doTrustedCallback() and #3226337: The website encountered an unexpected error. Please try again later. TypeError: .... Nothing really distinguishes this bug report from #3224723: Issue with doTrustedCallback() must be callable, array given absent more information.
Comment #5
rahul_sankrit commentedThis issue is resolved now for me.
I followed the following steps and the error was gone.
1. Update Drupal 9.5.11.
2. Then upgrade Drupal 10.1.3.
3. Finally Update the latest version of Drupal 10.1.6.
Thank you.
Comment #6
cilefen commentedComment #7
amjad23 commentedi have update the durpal 9.5 to 10.1.6 but i am facing issue
"Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in
and
TypeError: implode(): Argument #2 ($array) must be of type ?array, bool given in stack-cors/src/CorsService.php(199): implode(', ', true)