[gelöst] Webform Libraries Installation (encountered an unexpected error)
Eingetragen von Tropse (111)
am 21.10.2021 - 00:59 Uhr in
am 21.10.2021 - 00:59 Uhr in
Hallo,
sollte die Installation der Webform Libraries nicht so funktionieren?
drush webform:libraries:composer
drush webform:libraries:download
drush webform:composer:update
https://www.drupal.org/docs/contributed-modules/webform/webform-libraries
$ drush webform:libraries:composer
{
"name": "drupal/webform",
"description": "Enables the creation of webforms and questionnaires.",
"type": "drupal-module",
"license": "GPL-2.0-or-later",
"minimum-stability": "dev",
"homepage": "https://drupal.org/project/webform",
usw...
"dist": {
"url": "https://unpkg.com/tippy.js@6.2.6/dist/tippy-bundle.umd.min.js",
"type": "file"
},
"require": {
"composer/installers": "~1.0"
}
}
}
}
}
$ drush webform:libraries:download
Downloading https://registry.npmjs.org/places.js/-/places.js-1.19.0.tgz
Extracting to /www/htdocs/allinkluser/domain.de/drupal/web/libraries/algolia.places
Downloading https://download.ckeditor.com/autogrow/releases/autogrow_4.16.2.zip
Extracting to /www/htdocs/allinkluser/domain.de/drupal/web/libraries/ckeditor.autogrow
usw.
$ drush webform:composer:update
THIS IS AN EXPERIMENTAL DRUSH COMMAND.
PLEASE MAKE SURE TO BACKUP YOUR COMPOSER.JSON FILE.
Are you sure you want update your Drupal installation's composer.json file? (yes/no) [yes]:
>
[warning] Attempt to assign property 'algolia.places' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'ckeditor.autogrow' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'ckeditor.codemirror' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'ckeditor.fakeobjects' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'ckeditor.image' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'ckeditor.link' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'codemirror' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'jquery.inputmask' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'jquery.intl-tel-input' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'jquery.rateit' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'jquery.select2' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'jquery.textcounter' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'jquery.timepicker' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'progress-tracker' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'signature_pad' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'tabby' of non-object WebformCliService.php:1226
[warning] Attempt to assign property 'tippyjs/6.x' of non-object WebformCliService.php:1226
/www/htdocs/allinkluser/domain.de/drupal/composer.json updated.
Make sure to run `composer update --lock`.
$ composer update --lock
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
40 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Dann kommt auf meiner Webseite aber nur noch:
"The website encountered an unexpected error. Please try again later."
Schon die zweite Drupalinstallation.
Was ist falsch? Danke.
- Anmelden oder Registrieren um Kommentare zu schreiben
Webform Libraries Installation via Composer
am 30.10.2021 - 13:51 Uhr
Also noch mal von vorne, wie es hier steht:
https://www.drupal.org/docs/8/modules/webform/webform-frequently-asked-q...
1) Im project directory
composer require wikimedia/composer-merge-plugin
2) Edit "composer.json", man soll unter "extra": {
folgendes einfügen:
"merge-plugin": {
"include": [
"web/modules/contrib/webform/composer.libraries.json"
]
},
Bei mir sieht "composer.json" so aus:
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
Nach dem Edit soll es so aussehen oder?
"extra": {
"merge-plugin": {
"include": [
"web/modules/contrib/webform/composer.libraries.json"
]
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
3) Dann soll im Terminal
composer update --lock or composer update
Es folgt:
You cannot simultaneously update only a selection of packages and regenerate the lock file metadata.
4) Eigentlich will ich das: to install all the mentioned libraries in a local directory on your webserver, typically web/libraries, then you need to run
composer update --with-dependencies
Es scheint sich aber nichts zu machen?
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Das scheint eine Lösung:
Vor Schritt 3)
composer require drupal/webform
composer update --with-dependencies
Drupal 9.x, Ubuntu