Magento 2.4.4 Bug - undefined index: frontend - with FIX

We recently discovered a bug that appeared seemingly at random on one of our Magento 2.4.4 websites. A search online revealed this to be an almost unheard of bug, but the impact of this bug is that it takes the website down entirely.

What’s the issue?

We came into the office one morning to discover that an entire website was returning a 500 server error. An examination of the server log files revealed three errors:

Frontend/Pool:

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

SQL Error:

[2022-07-22T08:24:29.404089+00:00] main.ERROR: SQLSTATE[70100]: <<Unknown error>>: 1927 Connection was killed, query was: SELECT `queue_message`.`topic_name`, `queue_message`.`body`, `queue_message_status`.`id` AS `relation_id`, `queue_message_status`.`queue_id`, `queue_message_status`.`message_id`, `queue_message_status`.`status`, `queue_message_status`.`updated_at`, `queue_message_status`.`number_of_trials` AS `retries`, `queue`.`name` AS `queue_name` FROM `queue_message`
 INNER JOIN `queue_message_status` ON queue_message.id = queue_message_status.message_id
 INNER JOIN `queue` ON queue.id = queue_message_status.queue_id WHERE (queue_message_status.status IN (2, 5)) AND (queue.name = ‘export’) ORDER BY `queue_message_status`.`updated_at` ASC, `queue_message_status`.`id` ASC
 LIMIT 1

And then within the system.log file a reference to the following was noted:

GraphQL (2:3)
1: mutation {
2:   createCustomer(
     ^
3:     input: {

undefined index: frontend bug – What’s the solution?

The GraphQL reference in our system.log file was the strongest indicator of the source of the problem. From this we checked for files that had recently been changed on the server and noticed that the app/etc/env.php had been updated. We compared this file with the previous nights backup and discovered the following addition to the file which tied in with the error log:

,
    ‘cache’ => [
        ‘graphql’ => [
            ‘id_salt’ => ‘asdkjasdjkasdjlkasd2adsdsadas’
        ]
    ]

Removing this from our file, and then running the following resolved the issue bin/magento setup:upgrade && bin/magento setup:di:compile && bin/magento setup:static-content:deploy -f en_GB en_US && bin/magento cache:flush

M&S Cyber Attack - Anonymous Hacker
E-commerce
David Pratt

M&S Cyber Attack – How Do I Protect My Ecommerce Website?

In light of the recent cyber attack on Marks & Spencer, ecommerce security has once again been pushed into the spotlight. Here we explore what happened, why it matters, and how ecommerce business owners using Magento, Shopify or WooCommerce can reduce their risk and strengthen defences.
Read More »
Why Is My Website Not Getting Any Sales - Frustrated
E-commerce
Stacey Pratt

Why Is My Website Not Getting Any Sales?

Struggling to convert traffic into customers? From poor user experience to limited payment options and lack of marketing activity, there are many reasons your online store might not be performing. Let’s go over the most common pitfalls that hold eCommerce businesses back, and how to fix them. Whether you’re using Magento, Shopify, or WooCommerce, these insights could be the key to unlocking better sales!
Read More »
eCommerce Checkout Screen
Adobe Commerce
Stacey Pratt

Will New Buy Now Pay Later Rules Affect My Online Shop?

New UK regulations are coming for Buy Now, Pay Later (BNPL) services like Klarna and Clearpay, aiming to protect customers with affordability checks and clearer terms. But what does this mean for your eCommerce store? Find out what’s changing, when it’s happening, and how it may (or may not) affect your online checkout. It’s nothing to panic about, but it’s worth being prepared.
Read More »
DTF Digital