Create subtheme doesn't work with open_basedir restriction

Created on 1 January 2024, 11 months ago
Updated 16 March 2024, 8 months ago

Problem/Motivation

I use the open_basedir restriction and when trying to create a subtheme I obtain the error:
'The website encountered an unexpected error. Please try again later.'

Steps to reproduce

1. Enable open_basedir in your php.ini file, e.g.: open_basedir = /var/www
2. Try to create a subtheme from the bootstrap5 settings page
3. The above error appears

Proposed resolution

- Wait for https://www.drupal.org/project/drupal/issues/2799635 🐛 FileSystem::mkdir should handle open_basedir correctly Needs work to be fixed
- As a workaround disable open_basedir while creating themes

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom egfrith

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

Comments & Activities

  • Issue created by @egfrith
  • Status changed to Closed: works as designed 8 months ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Doesn't look like it is theme related, rather environment issue.

Production build 0.71.5 2024