Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299034

Image style thumbnails not generated when absolute path defined in $settings['file_public_path']

$
0
0

Problem/Motivation

We're deploying Drupal (8.8.8) with a CI/CD system. As part of our web server directory structure we have the files directory in a persistent location outside of the standard web/sites/default/files location. The chosen location is not reachable through a path relative to the Drupal install directory, so we have defined an absolute path in $settings['file_public_path']. While files upload correctly and they're accessible from their URLs relative to the configured Base URL, $settings['file_public_base_url'], the image thumbnails fail to generate.

Notably, the sample thumbnails for image styles do properly generate when visiting their respective edit pages, e.g. /admin/config/media/image-styles/manage/thumbnail: they're created in their respective folders, e.g. /persistent_files/styles/thumbnail/public/core/modules/image/sample.png and are accessible publicly at their respective public URLs. This leads me to believe that the issue is, perhaps, specific to the Media module.

Steps to reproduce

  • Delete all image styles manually
  • Flush all image styles drush if --all
  • Visit admin pages that would normally generate the thumbnails, e.g. /admin/content/media

Thanks in advance for any assistance from the community.


Viewing all articles
Browse latest Browse all 299034

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>