With Drupal 10 the "Create Subtheme" is not working

Created on 30 January 2023, almost 2 years ago
Updated 31 January 2023, almost 2 years ago

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

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇹Italy vincenzocacciatore

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

Comments & Activities

  • Issue created by @vincenzocacciatore
  • Status changed to Postponed: needs info almost 2 years ago
  • 🇦🇺Australia jannakha Brisbane!

    are there any errors in PHP log or Drupal logs?

  • 🇷🇺Russia andrewlab

    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).

  • 🇦🇺Australia wescogan

    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).
  • Status changed to Needs work almost 2 years ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    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 opened merge request.
  • Status changed to Needs review almost 2 years ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Ready for review with improvements to subthemes. 🍻

  • 🇬🇧United Kingdom donaldp

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

    • VladimirAus committed 29c12a5a on 3.0.x
      Issue #3337642 by VladimirAus, vincenzocacciatore, jannakha, andrewlab,...
  • Status changed to RTBC almost 2 years ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Cheers... Committed. 🥂

  • 🇦🇺Australia VladimirAus Brisbane, Australia
  • Status changed to Fixed almost 2 years ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024