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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Needs review
FileSize
5.69 KB

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

  • himerus committed ff0bfb3 on 8.x-5.x
    Issue #2805657 by hussainweb: Layout generator does not work properly...
himerus’s picture

Status: Needs review » Fixed

I'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.

hussainweb’s picture

Status: Fixed » Needs review
FileSize
2.55 KB

Thanks for the credit.

It still doesn't work. Here is a patch which fixes the problems.

hussainweb’s picture

Status: Needs review » Fixed

It was fixed in later commits. Thanks!

Status: Fixed » Closed (fixed)

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