Skip to content

getting error at random in magento2 website admin and frontend

Notice: Undefined index: frontend in vendor/magento/framework/App/Cache/Frontend/Pool.php on line 90

Warning: array_replace_recursive(): Expected parameter 2 to be an array, null given in vendor/magento/framework/App/Cache/Frontend/Pool.php on line 90

Warning: Invalid argument supplied for foreach() in vendor/magento/framework/App/Cache/Frontend/Pool.php on line 68

Fatal error: Uncaught InvalidArgumentException: Cache frontend ‘default’ is not recognized. As well as defaultcache is not configured in vendor/magento/framework/App/Cache/Frontend/Pool.php:162 Stack trace: #0 vendor/magento/framework/App/Cache/Type/FrontendPool.php(87): MagentoFrameworkAppCacheFrontendPool->get(‘default’) #1 vendor/magento/framework/App/Cache/Type/Config.php(49): MagentoFrameworkAppCacheTypeFrontendPool->get(‘config’) #2 vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): MagentoFrameworkAppCacheTypeConfig->_getFrontend() #3 vendor/magento/framework/App/ObjectManager/ConfigLoader.php(73): MagentoFrameworkCacheFrontendDecoratorBare->load(‘global::DiConfi…’) #4 vendor/magento/framework/App/ObjectManager/Environment/Developer.php(79): MagentoFrameworkAppObjectManagerConfigLoader->load(‘global’) #5 /home/m in vendor/magento/framework/App/Cache/Frontend/Pool.php on line 162