starterkit installer missing

Created on 27 January 2024, 11 months ago
Updated 30 January 2024, 11 months ago

Problem/Motivation

The core/scripts/drupal folder and the starterkit installer script therein are missing in the current 10.2.2 download

Steps to reproduce

Install Drupal with Composer or download the core file package, and see that the folder is missing, and therefore the instructions to install the starter_kit theme fails. Trying to run php core/scripts/drupal generate-theme mytheme per instructions, fails because the folder and installer script are missing.

Proposed resolution

Restore that folder to the distribution package, or if there's a new process to install the starter_kit, then update instructions (in particular the readme.md file with the starter_kit theme)

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Closed: works as designed

Version

10.2 ✨

Component
StarterkitΒ  β†’

Last updated 18 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States hondaman900

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

Comments & Activities

  • Issue created by @hondaman900
  • Status changed to Postponed: needs info 11 months ago
  • I can't reproduce this bug as written:

    php core/scripts/drupal generate-theme my_new_theme works as documented.

    core/scripts/drupal cannot be both a folder and an executable PHP script.

    There issue mentions that php core/scripts/drupal generate-theme my_new_theme fails but doesn't show the output, etc.

    I am moving this to a support request pending a bug reproduction.

  • πŸ‡ΊπŸ‡ΈUnited States hondaman900

    @cilefen did you try this on the current 10.2.2 download? As shown in the screenshot, that folder and it's contents are not in the 10.2.2 package. It can't possibly work.

  • πŸ‡ΊπŸ‡ΈUnited States hondaman900

    @cilefen UPDATE

    Am I missing something here? I've downloaded several Drupal core zips going back to 2022 (10.0.0) and none have the core/scrips/drupal folder.

    Is there some additional installation process that needs to be done after downloading the core to implement the theme starterkit?

  • πŸ‡ΊπŸ‡ΈUnited States andy-blum Ohio, USA

    Core/scripts/drupal is an extensionless file, not a folder. It is the 7th item in your screenshot.

  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    You said

    Trying to run php core/scripts/drupal generate-theme mytheme per instructions, fails

    Note the space after "drupal".

    What error do you get? Please copy and paste the command and the output.

  • πŸ‡ΊπŸ‡ΈUnited States hondaman900

    @longwave I get this response to the following command:

    stephen@stephen-ubuntu:~/rvmn/web$ ddev . php core/scripts/drupal generate-theme RVNM
    
    Could not open input file: core/scripts/drupal
    Failed to execute command php core/scripts/drupal generate-theme RVNM: exit status 1
    
  • @hondaman900 Verify you can run this the ordinary way outside of DDEV: php core/scripts/drupal generate-theme my_new_theme.

  • πŸ‡ΊπŸ‡ΈUnited States hondaman900

    @cilefen running the command without DDEV gives an error saying there's no PHP and prompting me to install it. This makes sense as without DDEV at the beginning of the command I'm doing that outside the virtual instance which has its own isolated PHP.

    I'm reluctant to follow the prompt and install PHP as I have no idea if this will interfere with the DDEV environment and the site. Ideally installing PHP on my system will not bleed over or effect my DDEV environment, and if not, then running the command outside of DDEV may be enough to generate the subtheme and move on?

    Seems that with the prevalence of DDEV that this would have come up with someone else prior to now...?

  • πŸ‡ΊπŸ‡ΈUnited States andy-blum Ohio, USA

    You should definitely be able to run the command inside ddev.

    There are a couple ways to accomplish this:

    1. Run ddev ssh. This will allow you to run commands inside the container.
    2. Run ddev exec php [command]. This will pass the command into the container and then running it without changing your entire CLI environment

    The tricky part of the second version is you have to know what the current working directory is. By default it's /var/www/html/, and if your drupal installation is inside a "web" directory, you have to add that part to your command.

    Try running ddev exec php web/core/scripts/drupal generate-theme mytheme and see if that works.

  • πŸ‡ΊπŸ‡ΈUnited States hondaman900

    Ok, so I gave it a shot and installed PHP 8.1 outside of DDEV and ran the starterkit command successfully.

    I'm wondering why this doesn't work though inside the virtual instance. Perhaps this should be corrected/enabled for future users?

    Thanks for the help with this - I'm now good to go.

    Apologies for mistakenly portraying this as the starterkit being missing which, in retrospect, wasn't the case.

  • Status changed to Closed: works as designed 11 months ago
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    Thanks for testing that and reporting back. Closing as works as designed.

    ddev exec (aka ddev .) always runs commands from the top level directory of the project, even if you are inside a subdirectory when you run it.

    It looks like you are using the recommended layout and your webroot is in a subdirectory called web. This command should work for you:

    $ ddev . php web/core/scripts/drupal generate-theme RVNM
    
Production build 0.71.5 2024