Drush: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
| Zeile 30: | Zeile 30: | ||
==[[Drush Fehlermeldung im Zusammenhang mit Commerce]]== | ==[[Drush Fehlermeldung im Zusammenhang mit Commerce]]== | ||
Wenn unter Durpal 7 Drupal Commerce im Einsatz ist, kann unter Umständen drush nicht mehr gestartet werden. | |||
Folgende Codeänderungen sind dann notwendig: | |||
--- commerce/modules/cart/commerce_cart.module (revision ) | |||
+++ commerce/modules/cart/commerce_cart.module (revision ) | |||
@@ -1339,7 +1339,8 @@ | |||
// Allow other modules to specify what properties should be compared when | |||
// determining whether or not to combine line items. | |||
- drupal_alter('commerce_cart_product_comparison_properties', $comparison_properties, clone($line_item)); | |||
+ $line_item_clone = clone($line_item); | |||
+ drupal_alter('commerce_cart_product_comparison_properties', $comparison_properties, $line_item_clone); | |||
// Loop over each line item on the order. | |||
foreach ($order_wrapper->commerce_line_items as $delta => $matching_line_item_wrapper) { | |||
Patch: | |||
https://www.drupal.org/files/issues/commerce-cart_product_add_php7-2762907-5.patch | |||
Version vom 9. Januar 2017, 13:25 Uhr
Drush arbeitet sehr eng mit Git zusammen
Drush Kommandos
Drush beispiele / Anwendungen
Drush Aliases
Installation
Ubuntu mit Sudo Rechte
sudo apt-get install drush
Installation ubuntu
https://www.drupal.org/node/1248790
pear channel-discover pear.drush.org pear install drush/drush drush version
Drush installation unter Cyon
Drush Upgrade
export PATH="$HOME/.composer/vendor/bin:$PATH"
composer global require drush/drush:7.*
Wenn unter Durpal 7 Drupal Commerce im Einsatz ist, kann unter Umständen drush nicht mehr gestartet werden.
Folgende Codeänderungen sind dann notwendig:
--- commerce/modules/cart/commerce_cart.module (revision )
+++ commerce/modules/cart/commerce_cart.module (revision )
@@ -1339,7 +1339,8 @@
// Allow other modules to specify what properties should be compared when
// determining whether or not to combine line items.
- drupal_alter('commerce_cart_product_comparison_properties', $comparison_properties, clone($line_item));
+ $line_item_clone = clone($line_item);
+ drupal_alter('commerce_cart_product_comparison_properties', $comparison_properties, $line_item_clone);
// Loop over each line item on the order.
foreach ($order_wrapper->commerce_line_items as $delta => $matching_line_item_wrapper) {
Patch:
https://www.drupal.org/files/issues/commerce-cart_product_add_php7-2762907-5.patch