Sean Breeden

Full Stack PHP, Python, AI/ML Developer
"Saruman believes it is only great power that can hold evil in check, but that is not what I have found. I found it is the small everyday deeds of ordinary folk that keep the darkness at bay. Small acts of kindness and love." --Gandalf

Fix Magento/PHP error: AH01071: Got error 'PHP message: PHP Warning: Undefined array key "frontend" in vendor/magento/framework/ App/Cache/Frontend/Pool.php on line 90

Sunday, March 24th, 2024

Everything is running smoothly, and suddenly, you get a 500 error on your Magento storefront. First, check your PHP error logs.

If you have the following error:

AH01071: Got error 'PHP message: PHP Warning: Undefined array key "frontend" in vendor/magento/framework/App/Cache/Frontend/Pool.php on line 90

Then open your app/etc/env.php file. Look for the following lines:

'cache' => [
'graphql' => [
'id_salt' => 'RANDOM HASH HERE'
]
]

Comment out these lines and flush your cache. You may need to flush the cache by manually flushing Redis or var/cache since bin/magento c:f isn't going to work.




(image generated by DALL-E on ChatGPT-4)

Views: 215
| Home | Announcements | Artificial Intelligence | Commodore 64 | CraftCMS | Crypto | Games | Geek | Machine Learning | Magento | Memes | Science News | Security | 7 Days to Die | Ubuntu |