This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
Fix the issue of run the queue with Drush from ReactPHP Eventloop #2
Labels
bug
Something isn't working
Problem: when deploy the module in Apache server, have to modify
$environment = new Environment(Path::getHomeDirectory(), $cwd, $autoloadFile);
to$environment = new Environment("/var/www/html/drupal", $cwd, $autoloadFile);
so the drush command is able to run.Reason: when run Drush from PHP, the function
Path::getHomeDirectory()
returnnull
from PHP/var/www/html/drupal/vendor/drush/drush/drush --root=/var/www/html/drupal --uri=http://localhost:8000 advancedqueue:queue:process blazegraph PHP Fatal error: Uncaught RuntimeException: Your environment or operation system isn't supported in /var/www/html/drupal/vendor/webmozart/path-util/src/Path.php:257 Stack trace: #0 /var/www/html/drupal/vendor/drush/drush/drush.php(62): Webmozart\PathUtil\Path::getHomeDirectory() #1 /var/www/html/drupal/vendor/drush/drush/drush(4): require('/var/www/html/d...') #2 {main} thrown in /var/www/html/drupal/vendor/webmozart/path-util/src/Path.php on line 257
Similar issue report:
hechoendrupal/drupal-console-core#255
webmozart/path-util#24
Potential fixes: webmozart/path-util@52e8858
The text was updated successfully, but these errors were encountered: