The requested URL not found

Created on 19 December 2023, 9 months ago
Updated 2 January 2024, 8 months ago

Problem/Motivation

After upgrading from Drupal 9 to Drupal 10, server returns error with request URL:

The requested URL "http://path_to_file" was not found on this server.

Steps to reproduce

Custom module that generate file URL, i.e.:
\Drupal::service('file_url_generator')->generateAbsoluteString("private://path_to_file")

Settings interface changes

None of the file system settings between D9 and D10 upgrade changed.
Neither on the server structure.
Actually both D9 and D10 version generate the same URL but it is not found with D10 upgrade.

Settings is set to : Private local files served by Drupal.

Is there any change in D10, .htaccess, that would alter behavior of the file system ?

πŸ’¬ Support request
Status

Fixed

Version

10.1 ✨

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΈπŸ‡¬Singapore adominique

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

Comments & Activities

  • Issue created by @adominique
  • Status changed to Postponed: needs info 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Does the file exist on disk?

    Are you getting an exception, if so can you share a stack trace by enabling verbose logging

    Anything shown in logs?

  • Status changed to Fixed 9 months ago
  • πŸ‡ΈπŸ‡¬Singapore adominique

    Yes everything is remaining on disk and server structure as before upgrade.
    I managed to find the origin of the problem: s3fs module. After uninstalling it, the file not found error was cleared.
    For some reason D10 version was ignoring the "Private local files served by Drupal." setting in file-system.
    Problem fixed.
    Thank you.

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

Production build 0.71.5 2024