Fast 404s no longer configured in setting.php

Created on 23 January 2023, over 2 years ago

Problem/Motivation

The relaese notes for Drupal 9.5.0 state that "It is no longer necessary or recommended to configure fast 404s in settings.php." The "Fast 404 pages" section of settings.php has been removed. The instruction within the Responsive Favicons README file to "Alter the config setting `system.performance.fast_404.exclude_paths` in your `settings.php` file" is not therefore appropriate for Drupal builds post 9.5.0.

Proposed resolution

Update README.md with appropriate instructions for Drupal builds =>9.5.0.

Remaining tasks

Determine appropriate instructions for Drupal builds =>9.5.0 and update README.md accordingly.

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Documentation

Created by

🇬🇧United Kingdom stevewilson

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

Comments & Activities

  • Issue created by @stevewilson
  • Status changed to Postponed about 2 years ago
  • 🇬🇧United Kingdom stevewilson

    I've added 📌 Remove 'fast_404.excluded_paths' from system.performance.yml Needs work as a related issue as it would appear that the fate of 'fast_404.excluded_paths' is not yet settled. We need agreement there before the documentation for this project can be updated reliably. I've therefore set the status of this issue to Postponed.

  • 🇬🇧United Kingdom stevewilson

    And corrected typo in title.

  • Status changed to Active 9 months ago
  • 🇬🇧United Kingdom stevewilson

    There has been no progress on issue 📌 Remove 'fast_404.excluded_paths' from system.performance.yml Needs work since I set this issue as Postponed. The suggestion in the Responsive Favicons README.md file to "Alter the config setting `system.performance.fast_404.exclude_paths` in your `settings.php` file:" remains inappropriate in Drupal 10 as that setting within settings.php no longer exists. The Responsive Favicons README.md file therefore needs updating in the next release of the module. I'm afraid I don't understand enough to know what the update should be.

    Setting this back to Active.

  • 🇫🇷France mably

    Looks like this still works in settings.php with Drupal 11.1.x:

    $config['system.performance']['fast_404']['html'] = '<!DOCTYPE...

  • 🇬🇧United Kingdom stevewilson

    Ok, but the line in settings.php which we are advised to alter is

    $config['system.performance']['fast_404']['exclude_paths'] = ...

    Which may also still work, I've not tried.

    My point,however, is that Drupal states "It is no longer necessary or recommended to configure fast 404s in settings.php." In which case, is it appropriate to add a fast_404 line into settings.php?

    And if it is, the README file needs updating to advise what should be added to settings.php rather than what should be altered - there is nothing to alter as fast_404 configuration has been removed from settings.php since Drupal 9.5.

    We (I, at least) need a maintainer to advise how to proceed with this.

  • 🇫🇷France mably

    Have made a few research and have not found any replacement solution for fast 404.

    And it looks like it's still working in Drupal 11.

    • mably committed 76f54cc5 on topic/icon-routes
      Issue #3335794 by stevewilson, mably: Fast 404s no longer configured in...
  • 🇫🇷France mably

    Ok, the fast_404 configuration in settings.php doesn't seem to be taken into account any more, on Drupal 11 at least.

    The dynamic routes created by this module work fine without it.

    Will remove the related documentation in the README file.

    • mably committed 76f54cc5 on 3.x
      Issue #3335794 by stevewilson, mably: Fast 404s no longer configured in...
  • 🇬🇧United Kingdom stevewilson

    Thank you for resolving this issue - much appreciated.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024