Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set file_public_path relative to the Drupal root in local.settings.php #4222

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

phenaproxima
Copy link
Contributor

@phenaproxima phenaproxima commented Aug 5, 2020

Fixes #

None.

Changes proposed

file_public_path is set wrong in local.settings.php. Drupal explicitly documents that it needs to be relative to the Drupal root, not an absolute path. My references are default.settings.php, and Drupal\system\Form\FileSystemForm. Both say this:

A local file system path where public files will be stored. This directory must exist and be writable by Drupal. This directory must be relative to the Drupal installation directory and be accessible over the web.

This was originally changed in 5a4aa87. Why, I don't know. But it is not correct, and breaks Drupal-level code. A concrete example is Cohesion -- it needs this value to be configured properly, or it cannot resolve the location of its CSS and JavaScript, thus breaking it in a big way, since it relies utterly on those assets in order to not only be usable by administrators, but also to display its output correctly.

Steps to replicate the issue

None needed. You'll see it when you create a BLT project.

Previous (bad) behavior, before applying PR

file_public_path will be a /full/path/to/site/directory/files. It needs to simply be site/directory/files.


Additional details

@danepowell danepowell merged commit 1453a1b into acquia:12.x Aug 5, 2020
@danepowell danepowell added the Bug Something isn't working label Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants