Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorException: Undefined index: civicrm #31

Open
kenorb opened this issue Jun 21, 2023 · 1 comment
Open

ErrorException: Undefined index: civicrm #31

kenorb opened this issue Jun 21, 2023 · 1 comment

Comments

@kenorb
Copy link

kenorb commented Jun 21, 2023

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];

@kenorb
Copy link
Author

kenorb commented Jun 21, 2023

I had to disable this plugin:

    "config": {
        "vendor-dir": "../vendor",
        "allow-plugins": {
            "drupal/console-extend-plugin": false,

then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant