Problem/Motivation

Create Subtheme doesn't work

Steps to reproduce

1. Install Bootstrap theme via composer on a fresh Drupal 10.0.2 installation.
2. Enable and set Bootstrap5 as default theme.
3. Go to Administration -> Appearance -> Appearance settings -> Bootstrap5
4. Try to create a Subtheme with default settings.
5. Following error message will appear: The website encountered an unexpected error. Please try again later.

Proposed resolution

Not known

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork bootstrap5-3337642

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vincenzocacciatore created an issue. See original summary.

jannakha’s picture

Status: Active » Postponed (maintainer needs more info)

are there any errors in PHP log or Drupal logs?

andrewlab’s picture

Drupal 9.5.2
The same error

Drupal\Core\File\Exception\FileNotExistsException: File 'themes/contrib/bootstrap5/css/breadcrumb.css' could not be copied because it does not exist. in Drupal\Core\File\FileSystem->prepareDestination() (line 459 of /mnt/sdb5/home/andrey/www/bloha9/web/core/lib/Drupal/Core/File/FileSystem.php).

wescogan’s picture

(10.0.2)

I'm getting an error or a different file when I attempt to create a subtheme:

The website encountered an unexpected error. Please try again later.

Drupal\Core\File\Exception\FileNotExistsException: File 'themes/contrib/bootstrap5/css/links.css' could not be copied because it does not exist. in Drupal\Core\File\FileSystem->prepareDestination() (line 459 of core/lib/Drupal/Core/File/FileSystem.php).
vladimiraus’s picture

Version: 3.0.0 » 3.0.x-dev
Status: Postponed (maintainer needs more info) » Needs work

Can confirm the issues. I'm getting

The website encountered an unexpected error. Please try again later.

Drupal\Core\File\Exception\FileNotExistsException: File 'themes/contrib/bootstrap5/css/action-links.css' could not be copied because it does not exist. in Drupal\Core\File\FileSystem->prepareDestination() (line 459 of core/lib/Drupal/Core/File/FileSystem.php).
Drupal\Core\File\FileSystem->copy('themes/contrib/bootstrap5/css/action-links.css', '/Users/tesboss/_PROJECTS/2023/testudio-platform/web/themes/custom/b5subtheme1/css/action-links.css', 1) (Line: 153)
Drupal\bootstrap5\SubthemeManager->submitForm(Array, Object) (Line: 54)

vladimiraus’s picture

Status: Needs work » Needs review

Ready for review with improvements to subthemes. 🍻

donaldp’s picture

The changes allowed me to generate a new subtheme.
Thanks.

  • VladimirAus committed 29c12a5a on 3.0.x
    Issue #3337642 by VladimirAus, vincenzocacciatore, jannakha, andrewlab,...
vladimiraus’s picture

Status: Needs review » Reviewed & tested by the community

Cheers... Committed. 🥂

vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed
vladimiraus’s picture

Status: Fixed » Closed (fixed)

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