Drush: Unterschied zwischen den Versionen
Erscheinungsbild
| Zeile 63: | Zeile 63: | ||
=BUGS= | =BUGS= | ||
PHP Version ändern: auf PHP CLI 7.1 | PHP Version ändern: auf PHP CLI 7.1 | ||
count(): Parameter must be an array or an object that implements Countable Table.php:789 [warning] | |||
sudo update-alternatives --set php /usr/bin/php7.1 | sudo update-alternatives --set php /usr/bin/php7.1 | ||
Version vom 16. Januar 2018, 15:37 Uhr
Drush arbeitet sehr eng mit Git zusammen
Wo ist Drush installiert?
which drush
Drush Upgrade
DAN
cd /usr/local/bin
php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush
chmod +x drush
composer require "drush/drush:8.*"
Anleitung unter:
https://www.lullabot.com/articles/switching-drush-versions
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.*
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
BUGS
PHP Version ändern: auf PHP CLI 7.1 count(): Parameter must be an array or an object that implements Countable Table.php:789 [warning]
sudo update-alternatives --set php /usr/bin/php7.1