I am trying to update a drupal 8 site to drupal 9. It is on Godaddy with cpanel.
I had to bring it up to the latest 8.x version before going up to drupal 9. I am using composer to manage the dependencies. As part of this I updated drush to v10.
Drush has suddenly stopped being able to find the root of the Drupal install and cannot do much of anything. When I run drush status i get the following:
~/vendor/bin/drush status PHP binary : /opt/alt/php74/usr/bin/php PHP config : /opt/alt/php74/etc/php.ini PHP OS : Linux Drush script : /home/lz7m8hr2s8ob/vendor/drush/drush/drush Drush version : 10.6.2 Drush temp : /tmp Drush configs : /home/lz7m8hr2s8ob/vendor/drush/drush/drush.yml Drupal root : /home/lz7m8hr2s8ob/public_html/public_html
The actual root is
I have tried:
- Passing in the
--rootflag (Does absolutely nothing)
- Running drush from inside the site root
- Deleting and re-installing drush with composer
How do I force drush 10 to use the correct root?
I tested the upgrade on a local copy and another copy of the site on a similar server. This issue did not arise.