By Stephen Winnall

2019-03-11 16:52:54 8 Comments

Up until Saturday I had a functioning Drupal 8.6.x instance. The I did

composer update

and Drupal 8.6.10 was installed. Since then I get the following in my error logs:

Declaration of Drupal\Core\Template\TwigTransTokenParser::parse(Twig_Token $token) must be compatible with Twig\TokenParser\TokenParserInterface::parse(Twig\Token $token)

and Drush fails with

Robo\Robo::configureContainer() must be an instance of Robo\Config\Config, instance of Drush\Config\DrushConfig given

I use PHP 7.2 on Ubuntu 18.04.

I did a clean reinstall of Drupal 8.6.10 and the same things occur. I've tried to replace 8.6.10 with 8.6.9 and even 8.6.0 but I still get these errors. If it were Java, I would suspect that the interface and the class had been compiled with different versions of the compiler. But I don't know PHP well enough to know where to start. These errors seem to me to be in core: all my code is under modules/xxx.

Any hints?



@Lesley Fernandes Moreira 2019-03-12 13:52:34

It is a global issue on this new Twig version 1.38.0.

I can be temporarily fixed by downgrading its version using composer require twig/twig:1.37.1

You can follow this issue to know when the Twig version can be updated again.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Can not update drupal/core with composer

  • 2019-03-13 22:57:02
  • Paul Paku
  • 45 View
  • 0 Score
  • 2 Answer
  • Tags:   composer

2 Answered Questions

2 Answered Questions

[SOLVED] Site UUID in source storage does not match the target storage

2 Answered Questions

2 Answered Questions

1 Answered Questions

[SOLVED] Drush 9.2 - not working well / not installing with Composer

  • 2018-04-16 15:46:47
  • DonRichmond
  • 487 View
  • 3 Score
  • 1 Answer
  • Tags:   drush composer

2 Answered Questions

[SOLVED] What difference between declaration of an ajax callback function with $this and without it?

  • 2017-08-28 18:02:16
  • Yakimkin Roman
  • 357 View
  • 7 Score
  • 2 Answer
  • Tags:   8 forms ajax

1 Answered Questions

[SOLVED] PHP Errors with Drupal 8 (Shared Hosting)

2 Answered Questions

Sponsored Content