Manual install of subtheme results in white screen.

Created on 28 July 2023, 11 months ago
Updated 22 September 2023, 9 months ago

Problem/Motivation

Followed https://www.drupal.org/docs/8/themes/barrio-bootstrap-4-drupal-89-theme/... → exactly but the subtheme (copied over from 'themes/bootstrap_barrio/subtheme') didn't install correctly. I just get a blank white screen on the front end and the settings page for the subtheme doesn't work. Blank white admin theme settings page too. Using Drupal 9.5.10. I tried in the themes and themes/custom folders.
The starter subtheme works fine at themes/bootstrap_barrio/subtheme

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

5.5

Component

Code

Created by

🇺🇸United States hcanning

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

Comments & Activities

  • Issue created by @hcanning
  • 🇮🇳India ravi kant Jaipur

    @hcanning
    Can you share error which are on "Recent log messages" page(/admin/reports/dblog)?
    May be you did not rename all templates and functionals.

  • 🇮🇳India abhiyanshu_rawat

    Hi @hcanning ,

    I just reproduce your issue on my machine, I successfully installed it and set as default theme, Also I'm using the same Drupal version 9.5.10.

    However, What i think that you missed is some minor spelling mistake on renaming the templates and functionals things.
    Please refer the attached screens for more clarity.

    For example,
    If i give my subtheme named as dummy subtheme , so please make sure that you've given the name correctly to other files apart from the functional thing.
    i.e..., dummytheme.info.yml , dummysubtheme.theme , dummysubtheme.libraries.yml etc
    Let me know in case of any queries , happy to assist you further.
    Hope it helps, Thanks.

  • 🇺🇸United States hcanning

    Hi,
    So if it helps others. On testing the Barrio them on day one, I used the subtheme in place at '[mysite1]/themes/bootstrap_barrio/subtheme' , added template,layout and content files etc...and built a sample webpage. Yesterday I tried to copy that particular subtheme over to '[mysite1]/themes/[mycustomtheme]'` following the how → . I followed it exactly and triple checked everything. I'd recommend changing 1 line in the how-to "Copy the subthemefolder on your /themes/custom directory." as it suggest you have to create the subtheme in a folder called custom e.g. '[mysite1]/themes/custom/subtheme/[mycustomtheme]'

    Anyway I got the white screen of death and no error logs that pointed to a fix. Anyway THE SOLUTION for me was to reinstall the original Barrrio theme fresh on another server and use (install and set as default) the fresh 'themes/bootstrap_barrio/subtheme' from that , place it at '[mysite1]/themes/[mycustomtheme] and restore the template, layout, content and general asset files I had from the original installation.

    Works now if others have the same problem. I'm a newbie at Drupal so that was my fix.

    Thanks

  • 🇮🇳India ravi kant Jaipur

    @hcanning
    If you can provider errors then it will help to understand your problem.

    You may check the errors following below steps -
    1. Enable "Database logging" module.
    2. Navigate to admin toolbar -> Reports -> Recent log messages

    Check the errors and share screenshots of the errors.

  • 🇵🇪Peru hatuhay Lima
  • 🇮🇳India ravi kant Jaipur

    @hcanning
    Do you need more support on this ticket?

Production build 0.69.0 2024