1

I am trying to use the CV command line tool and it is no longer working. I think it sopped working when I upgraded to 5.68.0. I am also running Drupal 9.5.11 on Amazon Linux 2. I have PHP 8 running.

The error is In Drupal8.php line 414: Class "ComposerAutoloaderInitDrupal8" not found.

Looking at the line Drupal8.php you can see it attempt to call the class. On line 416 of the same file there is a comment that says

// @Todo: do we need to handle case where $_SERVER has no HTTP_HOST key, ie. when run via cli?

Should it be expected that cv does not work any longer? Does anyone know the cutoff for when cv stopped working with CiviCRM if that is the case.

Thanks!

2
  • I'm also affected by this issue. Did you find a solution? Commented Sep 25 at 1:17
  • 1
    @IanEdington, I am sorry I did not reply to this issue when I first had it. Unfortunately, I do not remember how I fixed the issue. I think it had to do with just having settings that were wrong.
    – Josh
    Commented Oct 6 at 21:49

2 Answers 2

1

What version of cv are you running? You may need to upgrade. The current version (from cv -V) is v0.3.48

You can download the latest from https://github.com/civicrm/cv

1
  • I am running v0.3.48. Sorry I did not include the version in the question.
    – Josh
    Commented Dec 15, 2023 at 15:50
0

I had to configure the CMS Bootstrap by adding an environment variable:

CIVICRM_BOOT=Drupal8://full/path/to/web/directory

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.