I got D9 installed, then set about installing Civi with composer.phar require -W civicrm/civicrm-{core,packages,drupal-8}:'=5.36' (I want to use 5.36, if possible)

Things seemed to go OK except the compile stage which crashed. I ran again and chose No to compile and it looked to have installed CiviCRM. I'm able to see CiviCRM in the shortcut links, and I can sort of access some CiviCRM pages. But most of the resources are 404-ing (the ones whose URLs start with /libraries/...)

I have done drush cache-rebuild and cv flush - no errors. I have removed templates_c/en_GB manually.

So I thought maybe it was that broken compile step that caused the problem. I went back and ran composer.phar compile

The following packages have new compilation tasks:

  • civicrm/composer-compile-lib has 1 task
  • civicrm/civicrm-core has 1 task

Allow these packages to compile? ([y]es, [a]lways, [n]o, [l]ist,
[h]elp) a Compiling additional files (For full details, use verbose "-v" mode.)
Compile: Generate CCL wrapper functions Compile: Greenwich
CSS (dist/bootstrap3.css) DEPRECATION WARNING: Calling built-in
functions with a non-standard name is deprecated since Scssphp 1.8.0
and will not work anymore in 2.0 (they will be treated as CSS function
calls instead). Use "fade-in" instead of "fadein".
on line 569 of scss/_greenwich.scss

Fatal error: Uncaught ScssPhp\ScssPhp\Exception\SassScriptException:
$amount: Expected 5% to be within 0% and 1% in
Stack trace:
#0 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Node/Number.php(269):
#1 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php(8484):
#2 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php(8493):
#3 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php(6227):
#4 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php(3662):
#5 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php(3588):
#6 /var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php(2928):
ScssPhp\Scss in
/var/www/d9.artfulrobot.uk/vendor/scssphp/scssphp/src/Compiler.php on
line 553
@php -r 'require_once '''/var/www/d9.artfulrobot.uk/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL::copy('''../../bower_components/select2/select2-bootstrap.css''', '''extern/select2/select2-bootstrap.scss''');'
@php -r 'require_once '''/var/www/d9.artfulrobot.uk/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);'
Script @php -r 'require_once '''/var/www/d9.artfulrobot.uk/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);' handling the shell-runner event returned with error code 255

I imagine "Expected 5% to be within 0% and 1% in" is the problem somehow.

I don't believe that this is a duplicate of

I'm on PHP 7.4, MariaDB 10.3, nginx and docker. Composer 2.0.9. Drupal 9.2.6 The D9 site has some content brought in via a migration from D7; but I think just nodes and users. The reason I wanted 5.36 is because ultimately I want to learn how to upgrade a site from d7 to d9 and that site is on 5.36. I don't want to upgrade the d7 site to 5.39+ because there are bugs in core from 5.39 that I want to avoid ;-)

Oh I seem to have fixed the missing /libraries/... URLs by running composer.phar civicrm:publish.

Still interested in getting the compile working.

1 Answer 1


The compile fix was only backported to 5.41. If you want 5.36 you need to also require scssphp 1.6 as a workaround.


composer.phar require scssphp/scssphp=1.6
composer.phar compile

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.