Call to a member function createFileUrl() on null

Created on 24 October 2024, 2 months ago

Problem/Motivation

Sometimes during development or migration, the file list could be overridden a few times in the database.
As a result, when it happens the file with a 404 page disappears and the HTML file for 404 page could still exist the site down with error:
Error: Call to a member function createFileUrl() on null in Drupal\themed_fast_404\ThemedFast404Manager->getStatic404url() (line 50 of modules/contrib/themed_fast_404/src/ThemedFast404Manager.php).

Steps to reproduce

- Setup module
- Remove the Drupal file created for the 404 HTML page

Proposed resolution

Additional "if" sentence.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇦Ukraine stomusic Ukraine

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

Comments & Activities

Production build 0.71.5 2024