Skip to content

ErrorException: Undefined index: civicrm #31

Description

@kenorb

I'm installing civicrm plugin and I don't understand why I've got ErrorException with console-extend-plugin:

$ composer require civicrm/extendedreport:5.21 -v

Installs: zetacomponents/mail:1.9.4, electrolinux/phpquery:0.9.7, civicrm/extendedreport:5.21

In Installer.php line 35:
                            
  [ErrorException]          
  Undefined index: civicrm  
                            

Exception trace:
  at vendor/drupal/console-extend-plugin/src/Installer.php:35
 Composer\Util\ErrorHandler::handle() at vendor/drupal/console-extend-plugin/src/Installer.php:35
 Drupal\Console\Composer\Plugin\Installer->getInstallPath() at phar:///home/kenorb/bin/composer/src/Composer/Installer/LibraryInstaller.php:112
 Composer\Installer\LibraryInstaller->download() at phar:///home/kenorb/bin/composer/src/Composer/Installer/InstallationManager.php:277
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///home/kenorb/bin/composer/src/Composer/Installer/InstallationManager.php:218
 Composer\Installer\InstallationManager->execute() at phar:///home/kenorb/bin/composer/src/Composer/Installer.php:797
 Composer\Installer->doInstall() at phar:///home/kenorb/bin/composer/src/Composer/Installer.php:622
 Composer\Installer->doUpdate() at phar:///home/kenorb/bin/composer/src/Composer/Installer.php:287
 Composer\Installer->run() at phar:///home/kenorb/bin/composer/src/Composer/Command/RequireCommand.php:490
 Composer\Command\RequireCommand->doUpdate() at phar:///home/kenorb/bin/composer/src/Composer/Command/RequireCommand.php:339
 Composer\Command\RequireCommand->execute() at phar:///home/kenorb/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///home/kenorb/bin/composer/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/kenorb/bin/composer/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///home/kenorb/bin/composer/src/Composer/Console/Application.php:377
 Composer\Console\Application->doRun() at phar:///home/kenorb/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///home/kenorb/bin/composer/src/Composer/Console/Application.php:141
 Composer\Console\Application->run() at phar:///home/kenorb/bin/composer/bin/composer:88
 require() at /home/kenorb/bin/composer:29

My composer.json:

+        {
+            "type": "vcs",
+            "url": "https://github.com/eileenmcnaughton/nz.co.fuzion.extendedreport"
+        },
...
+        "civicrm/extendedreport": "5.21",
...
+            "modules/civicrm-ext/{$name}": [
+                "type:civicrm-ext"
+            ],

Line 35: $class = 'Drupal\\Console\\Composer\\Plugin\\' . $this->supportedTypes[$frameworkType];

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions