wxt_core: 404 error pages not rendering

Created on 29 January 2023, over 1 year ago
Updated 4 February 2023, over 1 year ago

Problem/Motivation

Updated Drupal WxT distribution to 4.4.x-dev (Drupal 9.4.9, PHP 8.1)

404 Not Found pages are now not rendering correctly. Error message received is the following:

The website encountered an unexpected error. Please try again later.
TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in array_intersect_key() (line 293 of core/lib/Drupal/Core/Render/Renderer.php).

Steps to reproduce

Navigate to a URL that will generate a 404 Not Found error.

Proposed resolution

A proper Drupal render array is not being supplied to the render function in the method WxTHttp4xxController->on404() in the module wxt_core.

Submitting proposed patch to WxTHttp4xxController.php in wxt_core.

🐛 Bug report
Status

Fixed

Version

4.4

Component

Code

Created by

🇨🇦Canada jmdeleon

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

Comments & Activities

Production build 0.69.0 2024