Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | libraries-2557419.patch | 386 bytes | jonhattan |
Comments
Comment #2
jonhattanBecause 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.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman at Acquia commentedLooks proper to me. This will fix a Drush test that enables Libraries module.
Comment #5
tstoecklerThanks a lot, sorry for taking so long!
Comment #6
tstoecklerAhh, 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.
Comment #8
srikanth.g CreditAttribution: srikanth.g commentedI 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).
Comment #10
alokvermaei CreditAttribution: alokvermaei commentedIn my case truncating all the cache bin solved the issue.
Comment #11
sopranos CreditAttribution: sopranos commentedhow did you truncate the cache bin?
Comment #12
alokvermaei CreditAttribution: alokvermaei commentedHi 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.
Comment #13
makbul_khan8 CreditAttribution: makbul_khan8 as a volunteer commentedTruncated all cache_* tables but still issue exist.
Help appreciated!!
Thanks