The website encountered an unexpected error. Please try again later. TypeError: ...

Created on 2 August 2021, over 3 years ago
Updated 27 January 2023, almost 2 years ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.
TypeError: Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in /usr/share/webapps/drupal/core/lib/Drupal/Core/Render/Renderer.php on line 786 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 51 of core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).

Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 786)
Drupal\Core\Render\Renderer->doCallback() (Line: 377)
Drupal\Core\Render\Renderer->doRender() (Line: 201)
Drupal\Core\Render\Renderer->render() (Line: 241)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 57)
Drupal\Core\StackMiddleware\Session->handle() (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch() (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup() (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 716)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

This arrived on by browser screen when I type the following URL to open Drupal : localhost/drupal
This happened just after an installation of Drupal 9.2.0-1 on Manjaro Linux 21.1.0 with the tutorial you can find here : https://wiki.archlinux.org/title/Drupal.

I just modified three lines of the tuto to debbug a previous problem I had :

LoadModule php7_module modules/libphp7.so -> LoadModule php_module modules/libphp.so
AddHandler php7-script .php -> AddHandler php-script .php
Include conf/extra/php7_module.conf -> Include conf/extra/php_module.conf

Configuration :

  • Apache = v2.4.48-1
  • PHP = v8.0.8-1
  • Drupal path = /usr/share/webapps/drupal/

I have really no idea of what to do..
I hope somebody has a solution :) Thanks in advance !

Best,
Théo

🐛 Bug report
Status

Closed: duplicate

Version

9.5

Component
Install 

Last updated 7 days ago

No maintainer
Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024