Recently this module started failing with:

Fatal error: Cannot instantiate interface Drupal\Core\Cache\CacheBackendInterface in /var/www/d8/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 265
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                      [error]
Error: Cannot instantiate interface Drupal\Core\Cache\CacheBackendInterface in /var/www/d8/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php, line 265
CommentFileSizeAuthor
#2 libraries-2557419.patch386 bytesjonhattan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jonhattan created an issue. See original summary.

jonhattan’s picture

Status: Active » Needs review
FileSize
386 bytes

Because of #2497243: Replace Symfony container with a Drupal one, stored in cache. This is the commit http://cgit.drupalcode.org/drupal/commit/?id=22fbcd414eea90a8c07491c8ef8...

Changed the service declaration in concordance with other declarations in core.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Looks proper to me. This will fix a Drush test that enables Libraries module.

  • jonhattan authored 196c859 on 8.x-3.x
    Issue #2557419 by jonhattan: Fix obsoleted cache bin declaration.
    
tstoeckler’s picture

Status: Reviewed & tested by the community » Fixed

Thanks a lot, sorry for taking so long!

tstoeckler’s picture

Ahh, actually #2525898: Depricated setFactoryMethod(). Update needed to support Symfony 3.0 in core had been opened first, so I chose to give @rjacobs the credit.

  • 82f3114 committed on 8.x-3.x
    Revert "Issue #2557419 by jonhattan: Fix obsoleted cache bin declaration...
srikanth.g’s picture

I am trying to install and enable few contrib modules,i get this error in drupal 8(beta15):
Fatal error: Cannot instantiate interface Drupal\Core\Cache\CacheBackendInterface in drupal8beta15\core\lib\Drupal\Component\DependencyInjection\Container.php on line 265

The module List page shows some warnings:
Warning: mkdir(): Invalid argument in Drupal\Component\PhpStorage\FileStorage->createDirectory() (line 171 of core\lib\Drupal\Component\PhpStorage\FileStorage.php).
Warning: rename(sites/default/files/php/twig/.4765dc6fb2,sites/default/files/php/twig/484ed2d8_label>_de1939a2faa19c3d4119482b01165e896aabc3c0fd7e5bc6fd98370b04131d67/6431fc0cea36f784dd4d79ff62c21442a0b87caa4ae706eea91f7cc9805d9326.php): The filename, directory name, or volume label syntax is incorrect. (code: 123) in Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save() (line 91 of core\lib\Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage.php).
Warning: mkdir(): Invalid argument in Drupal\Component\PhpStorage\FileStorage->createDirectory() (line 171 of core\lib\Drupal\Component\PhpStorage\FileStorage.php).
Warning: rename(sites/default/files/php/twig/.4b34047205,sites/default/files/php/twig/484ed2d8_span>_2722e563cad4a836ae03dda89606841ad986588289ba923931990de03ea524d5/71a4d8daff95000fd722f5ffe97da69743b62576492f10d946d92e99b863f374.php): The filename, directory name, or volume label syntax is incorrect. (code: 123) in Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save() (line 91 of core\lib\Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage.php).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

alokvermaei’s picture

In my case truncating all the cache bin solved the issue.

sopranos’s picture

how did you truncate the cache bin?

alokvermaei’s picture

Hi sopranos ,

I have truncated all the table of from back end related to cache bin like cache_bootstrap or execute the query "show tables like 'cache_%'";

Hope it help.

makbul_khan8’s picture

Truncated all cache_* tables but still issue exist.

[Fri May 12 13:00:08.326963 2017] [:error] [pid 13467] [client 127.0.0.1:59716] PHP Fatal error:  Cannot instantiate interface Drupal\\Core\\Cache\\CacheBackendInterface in /home/user/workspace/drupal8-learning/core/lib/Drupal/Component/DependencyInjection/Container.php on line 268, referer: http://localhost/drupal8-learning/admin/config/development/performance

Help appreciated!!
Thanks