Skip to content

Expert Answers to Your Magento, Shopify & Shopware Questions

Vendor-neutral, engineer-written explanations. Clear definitions first, then practical steps with real examples — no fluff.

Stagebit builds and maintains stores on Magento, Adobe Commerce, Shopify, Shopware, and Laravel, and this library holds the questions our own engineers get asked most often on each platform.

How do I fix “There has been an error processing your request”?

SB
Written by Stagebit Engineering Team
Updated November 2026 4 min read Verified by engineers

In Magento 2, “There has been an error processing your request” means an uncaught exception stopped the page from loading. The page hides the details and adds “Exception printing is disabled by default for security reasons.” To fix it, open the file in var/report/ that matches the “Error log record number,” then fix the exception it records.

Quick answer

Behind the Magento 2 “error processing your request” message there is almost always a report file on the server. Run cat var/report/<number> from the Magento root, using the record number shown on the error page. Its first lines name the cause: stale generated code, bad permissions, a broken extension, or a lost database connection. Fix that, then run bin/magento cache:flush.

Applies to Magento Open Source and Adobe Commerce 2.4.x. Commands and Adobe references

Fix the Magento error processing your request in five steps

Steps 1 to 3 are read-only, so they are safe on a live store. Changes start at Step 4.

Flowchart of the Magento error processing your request fix: record number, var/report file, matching fix, cache flush

Step 1: Copy the Magento error report number

The Magento “error processing your request” page ends with an “Error log record number.” On Magento 2.4 this is a long hex string, so copy all of it. On Adobe Commerce Cloud, Fastly can hide this page behind a generic 503. Adobe’s knowledge base explains how to bypass Fastly with a hosts file entry so the real number appears.

Step 2: Open the report file in var/report

SSH into the server and run this from the Magento root directory:

cat var/report/<number>

Adobe’s Commerce Cloud upgrade guide names var/report/<number> as the source of details for the “error processing your request” page. var/log/exception.log and var/log/system.log often hold the same exception with a timestamp, which helps on busy stores.

Step 3: Find the failing module in the stack trace

The first line of the report file holds the exception message. The stack trace below it shows which file and module threw it. If a path under app/code/ or a third party vendor folder appears near the top, suspect that extension first.

Step 4: Match the report message to its fix

Match the first line of the report file to the row below.

Message in the reportWhat it meansFix
Class ... does not existGenerated code is stale after a deploy or module installRun bin/magento setup:upgrade, then setup:di:compile and setup:static-content:deploy in production mode
No alive nodes found in your clusterMagento cannot reach Elasticsearch or OpenSearch (Adobe KB)Start the search service, then confirm host and port under Stores > Configuration > Catalog > Catalog > Catalog Search
SQLSTATE[HY000] [2002]PHP could not reach the database host set in app/etc/env.phpCorrect the host in env.php and confirm MySQL or MariaDB is running
Permission deniedWrong ownership on var/, generated/ or pub/static/Set the owner back to the web server user rather than opening permissions up
A path inside one extensionThat extension threw the exceptionRun bin/magento module:disable Vendor_Module to confirm, then patch it or contact the vendor

Step 5: Flush cache and reload the page

bin/magento cache:flush

Reload in a private window. A new error page with a different number means a second problem sits behind the first, so repeat from Step 1.

What to avoid when fixing a Magento error report on a live store

  • Never show shoppers the exception behind the Magento “error processing your request” page. Developer mode and a pub/errors/local.xml copied from local.xml.sample with <action>print</action> set both print the full exception to every visitor. Use them on staging only.
  • Skip any forum fix that runs chmod -R 777. It makes code and config files writable by every user on the server.
  • Take a database backup before running setup:upgrade on production. It can apply schema and data patches you can’t easily roll back.
  • Run bin/magento maintenance:enable while compiling, so customers don’t land on a half-built storefront.
  • Read old files in var/report/ before deleting them. Their timestamps show when the problem started.

What if var/report has no Magento error report file?

If var/report/ has no file matching the error log record number, Magento couldn’t write it. Check write permissions on that folder first. Then check the PHP error log and the Nginx or Apache error log. A fatal error during bootstrap can stop Magento before it writes any report. On multi-server setups, the file sits on whichever node handled the request.

When the Magento “error processing your request” page appears, start with the report number before you touch code or config. Guessing at fixes tends to stack a second problem on top of the first. Some reports lead into custom code or extension conflicts that are hard to untangle. Our Magento development team can trace those on a staging copy.

Was this answer helpful?

Your feedback helps us improve our answers.

Still need help?

Talk to our Magento experts

Still seeing the error after reading the report? Send us what it says and what changed recently, and we'll help you trace the cause.

Talk to Magento / Adobe Commerce Experts