Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
This is very similar to #2801141: Layout builder not working on D8 and Omega 5 but with a few differences. I don't see the successful save message at all in my case. On debugging, I found the issue to be combining realpath() and base_path().
My config maps example.dev
to /var/www
. The site is at /var/www/site/docroot
which means the website is at example.dev/site/docroot
. The directory paths are being calculated as /var/www/site/docroot/site/docroot/themes/custom/theme_name/style...
Proposed resolution
Use only realpath().
Comment | File | Size | Author |
---|---|---|---|
#5 | layout_generator_does-2805657-5.patch | 2.55 KB | hussainweb |
Comments
Comment #2
hussainwebThe attached patch works for me and correctly updates the SCSS files. It even fixed the error I had when I had "Compile SCSS files" checked (#2675798: Can't Compile SCSS and admin interface doesn't work on subtheme generator).
Comment #4
himerus CreditAttribution: himerus as a volunteer commentedI've committed with credit here for the find/fix. However, the code from the admin functions file have been moved out to static methods.
I've tested repeatedly with clone/subtheme functionality on a subdomain, but will need some verification this is working for both sites at the top level and a subdirectory.
Comment #5
hussainwebThanks for the credit.
It still doesn't work. Here is a patch which fixes the problems.
Comment #6
hussainwebIt was fixed in later commits. Thanks!