GM-Tochter Cruise Automation testet autonome E-Taxis

heise online Newsticker - 11. August 2017 - 8:00
Mitarbeiter der GM-Tochter Cruise Automation sind in San Francisco mit autonomen Chevrolet Bolt EV unterwegs.

Shampoo per Prime Now: Rossmann kooperiert mit Amazon

heise online Newsticker - 11. August 2017 - 7:30
Amazon und Rossmann arbeiten zusammen: Prime-Kunden können sich Haushaltsartikel, Kosmetik-Produkte und einiges mehr innerhalb von einer Stunde liefern lassen – zunächst aber nur in Berlin.

FMS 2017: Seagate mit 64-GByte-PCIe-SSD

heise online Newsticker - 11. August 2017 - 7:00
Seagate ist schon lange kein reiner Festplatten-Hersteller mehr. Zum Flash Memory Summit brachte das Unternehmen einige interessante Server-SSDs mit.

Patchday: Nur zwei Lücken im Flash Player, dafür 67 Schwachstellen in Adobe Reader

heise online Newsticker - 11. August 2017 - 7:00
Diesen Monat steht ausnahmsweise mal nicht der Flash Player im Rampenlicht von Adobes Patchday.

Blaue Briefe für Pop-Ups: Google warnt Website-Betreiber wegen Chrome-Adblocker

heise online Newsticker - 11. August 2017 - 7:00
1000 Website-Betreiber bekamen laut Medienberichten eine Vorwarnung, besonders intrusive Werbung zu unterbinden. Der Konzern bereitet damit den Chrome-internen Adblocker vor.

Internet Archive in Indien gesperrt – kein Grund angegeben

heise online Newsticker - 11. August 2017 - 6:30
In Indien können Internetnutzer derzeit offenbar nicht auf das Internet Archive zugreifen, zumindest nicht auf die HTTP-Variante. Die HTTPS-Seite scheint weiter zu funktionieren. Über die Gründe für die Sperrung kann derzeit nur spekuliert werden.

Apple-Aktie knackt neues Allzeithoch

heise online Newsticker - 11. August 2017 - 6:30
Erstmals in ihrer Geschichte sind die Anteilsscheine des iPhone-Konzerns aktiensplitbereinigt mehr als 160 US-Dollar wert. Die Marktkapitalisierung steigt auf über 825 Milliarden.

Patchday: Windows-Suche als Einfallstor für wurmartige Attacken

heise online Newsticker - 11. August 2017 - 6:00
Mehr als die Hälfte der von Microsoft für unter anderem Edge, Internet Explorer und Windows zur Verfügung gestellten Patches schließen als kritisch eingestufte Lücken.

Chen Hui Jing: Drupal 7 versus Drupal 8

Planet Drupal - 11. August 2017 - 2:00

I’ve recently embarked on my first official Drupal 8 project, for Sinvict Technology (case study when the project launches), and it was interesting to see how certain things changed for the better, certain things stayed familiar and certain things seemed slightly worse off. I thought I’d write up some comparison notes between the two versions. This is my personal opinion based on my experiences. You should have your own opinion too.

Core is so much better

I really like the improvements made to core for Drupal 8. Making views part of core was a great idea, as was making the date field core as well. I felt the organisation of files in the new folder structure was more intuitive...

PreviousNext: Using Composer to debug issues updating Drupal core

Planet Drupal - 11. August 2017 - 0:33
Share:

This week whilst trying to update one of our projects to the latest version of Drupal 8 core, we had some issues.

We use Composer to manage our dependencies, modules etc, and on this particular occasion, things weren't straightforward.

In order to solve it, we had to use some of the lesser known features of Composer, so decided to share.

by lee.rowlands / 11 August 2017 The problem

So updating Drupal core with composer is normally pretty simple. And on this occasion, we had no reason to suspect it would be anything different.

Normally we'd just run

composer update "drupal/core" --with-dependencies

But this time, nothing happened.

So we checked that there was a newer version available

composer show -a "drupal/core"

And sure enough, we can see 8.3.6 in the available versions.

Time to dig deeper.

The why

Luckily, composer will tell you why it won't install something.

composer why-not "drupal/core:8.3.6"

Which yielded

drupal/core 8.3.6 conflicts drush/drush (<8.1.10)

Aha, so drush is the issue.

So maybe we just update both

composer update "drupal/core" "drush/drush"

Nope.

Digging deeper

So after trying a few different combinations of version constraints etc, we decided to remove drush, update and then add it back.

composer remove --dev "drush/drush"

Which worked.

composer update "drupal/core" --with-dependencies

Ok, nice, we now have Drupal 8.3.6

composer require --dev "drush/drush"

Nope.

Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for drush/drush 8.1.12 -> satisfiable by drush/drush[8.1.12]. - Conclusion: remove phpdocumentor/reflection-docblock 3.2.2 - Conclusion: don't install phpdocumentor/reflection-docblock 3.2.2 - drush/drush 8.1.12 requires phpdocumentor/reflection-docblock ^2.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.0, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a1, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a2, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a3, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.1, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.2, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.3, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.4, 3.2.2]. - Can only install one of: phpdocumentor/reflection-docblock[2.0.5, 3.2.2]. - Installation request for phpdocumentor/reflection-docblock (locked at 3.2.2) -> satisfiable by phpdocumentor/reflection-docblock[3.2.2]. Installation failed, reverting ./composer.json to its original content.

Hm, so we have a version of phpdocumentor/reflection-docblock in our lock file that is too high for drush.

composer why "phpdocumentor/reflection-docblock"

Yields

phpspec/prophecy v1.6.1 requires phpdocumentor/reflection-docblock (^2.0|^3.0.2)

Aha, so prophecy - but it allows either version .. but our lock file has pinned it to the 3.x branch

So lets force composer to downgrade that

composer require --dev "phpdocumentor/reflection-docblock:^2.0"

Now lets see if we can add drush back

composer require --dev "drush/drush"

Success!

Now all that remains is to clean up, because we don't really want to depend on phpdocumentor/reflection-docblock

composer remove --dev "phpdocumentor/reflection-docblock"

Done - quick - commit that lock file while you're winning!

Summary

So while it might be easy to curse Composer for not letting you upgrade, its actually doing exactly what you told it to do.

Your lock file has a pinned version, it is honoring that.

And in order to resolve it, Composer provides all the tools you need in the form of the why and the why-not commands.

Tagged Composer, Drupal 8

Posted by lee.rowlands
Senior Drupal Developer

Dated 11 August 2017

Add new comment

PreviousNext: Using Composer to debug issues updating Drupal core.

Planet Drupal - 11. August 2017 - 0:33

This week whilst trying to update one of our projects to the latest version of Drupal 8 core, we had some issues.

We use Composer to manage our dependencies, modules etc, and on this particular occasion, things weren't straightforward.

In order to solve it, we had to use some of the lesser known features of Composer, so decided to share.

Glassdimly tech Blog: How to Pluralize and Singularize a Word in Drupal 8

Planet Drupal - 10. August 2017 - 23:52

Pluralizing and singularizing words got very easy with the inclusion of the Doctrine Inflector class.

Himanshu Dixit | Blog: Week 10: Finishing Social Post Implementer and GSoC Meetup At LNMIIT

Planet Drupal - 10. August 2017 - 19:54
Week 10: Finishing Social Post Implementer and GSoC Meetup At LNMIIT himanshu-dixit Thu, 08/10/2017 - 23:24

Lullabot: Lullabot Front-End Roundtable... Err...Triangle

Planet Drupal - 10. August 2017 - 19:05
Mike and Matt talk about the intricacies of front-end development with two of Lullabot's front-end developers, Marc Drummond and Wes Ruvalcaba.

KatteKrab: Tools for talking

Planet Drupal - 10. August 2017 - 18:59
Friday, August 11, 2017 - 02:59

I gave a talk a couple of years ago called Tools for Talking.

I'm preparing a new talk, which, in some ways, is a sequel to this one. As part of that prep, I thought it might be useful to write some short summaries of each of the tools outlined here, with links to resources on them.

  • Powerful Non Defensive Communication
  • Non Violent Communication
  • Active Listening
  • Appreciative Inquiry
  • Transactional Analysis
  • The Drama Triangle vs
  • The Empowerment Dynamic
  • The 7 Cs

So I might try to make a start on that over the next week or so.

 

In the meantime, here's the slides:

Tools for talking from Donna Benjamin

And here's the video of the presentation at DrupalCon Barcelona

Start-up will Augmented Reality mit maschinellem Sehen präziser machen

heise online Newsticker - 10. August 2017 - 18:30
Bei Augmented Reality wird die reale Welt um virtuelle Informationen ergänzt. Das Ergebnis ist, unter anderem wegen ungenauer Positionsbestimmung, nicht immer überzeugend. Abhilfe soll jetzt ein neues Konzept bringen.

Rettungs-Drohnen im Einsatz an französischen Atlantikstränden

heise online Newsticker - 10. August 2017 - 18:30
An ersten Stränden in Südfrankreich erhalten Rettungsschwimmer nun Hilfe von Drohnen. Die Geräte sollen deutlich schneller bei Menschen in Not sein und diesen eine Boje bringen, an der sie sich festhalten können, bis die Retter eintreffen.

Hackercamp SHA2017: Künstliche Intelligenzen und gefährliche Algorithmen

heise online Newsticker - 10. August 2017 - 18:00
Der größte Tesla-Parkplatz Europas hat sich aufgelöst, auch die Pappzelte sind Matsch, denn das Gelände der niederländischen Pfadfinder versinkt im Dauerregen. "Still Hacking Anyway" ist vorüber. Ein Fazit.

Valuebound: How to Create Form Table with pagination in Drupal 8

Planet Drupal - 10. August 2017 - 17:33

There are scenarios, where you will have a lot of users. In such an instance , if we display all the users in single page, it will mess with the user experience, to scroll through such a long list. By using Drupal pagination we can display the configured number of users in the single page.

In one of the previous blogs, we learnt how to create a Drupal table form, in this blog we will learn about creating the form table with Drupal pagination. When completed and configured with 10 users, the form can look like the below image.

50 Jahre Kindertraum: Das Fliewatüüt hat Geburtstag

heise online Newsticker - 10. August 2017 - 17:00
Im August 1967 erschien die Erstauflage von Boy Lornsens Kinderbuch „Robbi, Tobbi und das Fliewatüüt“, Anfang September wird die kongeniale Verfilmung des WDR 45. Eine Gratulation.