What was stopping web orders: tracing checkout faults from vague complaints and server logs
Customers said things like “my card doesn't work” and “it won't let me verify my address”. The store's logs and database held the rest. This is how I traced six faults on a Magento 2 store to their causes, counted what each one cost, and put a conservative number on fixing them.
Overview
Web orders had been soft for weeks, and the sales desk kept taking orders by phone from customers who said the website wouldn't let them check out. Nobody could say how often it happened or why. The complaints were real but vague, and most of them arrived as a one-line summary of a phone call.
An outside agency develops the store. I had read-only access to its database, its error logs and the web server's access log. For each complaint I found that shopper in the records, worked out what the site actually did to them, then counted how many other shoppers it did the same thing to.
That turned up six faults. For each one I counted the carts it stopped, the shoppers among them who never ordered at all, and the orders the sales desk ended up taking by phone.
What customers said, and what it was
The sales desk's app reads every incoming call summary, email, text, voicemail and web form and flags the ones about a website problem. Over three days it read 494 messages and flagged 13. Seven came in on calls, five by email and one by voicemail. None came through the website's own forms or by text: a customer with a website problem picks up the phone.
Over two weeks there were 23 reports from 22 customers. Nineteen of them still ended in an order, but only three on the website. The desk took the other sixteen by phone or email.
The one-line summary named a symptom, rarely the cause, and three of the first 13 weren't about the website at all. A few examples:
| What the customer said | What it turned out to be |
|---|---|
| “Internal Error. Details are available in Magento log file. Report ID: webapi-…” | A crash in the sales tax add-on at Place Order. But this email was a resend: the error was 15 days old and the customer had already ordered by email in between. |
| “An error has happened during application run.” | A loop at sign-in. Loading the customer's saved cart called the tax service, whose request logger loaded the same cart again, until PHP ran out of stack. It left no Report ID. |
| “My card doesn't work.” “The ZIP code isn't right.” | The bank approved the card. The site's own address check then cancelled the approval, often because checkout had sent the shipping address as the billing address. |
| “The billing address didn't default.” | The same checkout fault. For accounts with a separate billing address, 41 of 83 card orders were billed to the shipping address. |
| “It won't let me verify my shipping address.” | An address check that asks the shopper to confirm almost any address missing its ZIP+4. On a test copy of the store, 25 of 40 real, deliverable addresses got the prompt. |
| “Every product says forbidden.” | The web host was refusing most Chrome versions from 116 to 146 as bot traffic, about 12,000 page requests a day, including a shopper arriving from a paid ad. |
| “The password email never came.” | A mail configuration fault after a Magento update: the store's own emails went out without the domain's sender authentication, and Gmail dropped them. |
How I traced them
Every complaint went through the same steps. None of them needed write access to anything.
- Read the customer's own words. The transcript or the email, never just the summary. “My card doesn't work” turned out to be a card the bank had approved and the site had cancelled.
- Find the shopper in the store's records. Magento's logs don't record IP addresses, so the match is on cart number, customer number or email. The payment module's table holds every card attempt since 2019 with the bank's answer, the address check result and the security code result. The logs keep 14 days. For anything older, that table is the record.
- Work out exactly what the shopper saw. The error text, the Report ID if there was one, and the matching entries in the error log and the access log.
- Check settings before trusting a test copy. The card fault never reproduced on the staging site, because staging accepted the bank answer that production refused. Comparing the two configurations found it.
- Count everyone else it happened to. Once a fault has a fingerprint (an error message, a stack frame, a bank answer), the logs and tables say how many carts carried it.
- Follow each of those shoppers forward. Did they order on the website later, order by phone or email (a sales order in the ERP matched by email or account), or never order at all within 14 days?
- Scale to a normal month by order count. Faults hit shoppers in proportion to how many check out. October was 17% down in dollars but only 8% down in orders, so a slow month hid less than it seemed to.
The Report ID is a timestamp
When Magento's web API fails, it shows the shopper “Report ID: webapi-” and a hex string. That string comes from PHP's uniqid(), and its first eight hex digits are the Unix time the error happened. So a customer email quoting a Report ID dates itself:
import datetime as dt
report_id = "webapi-6abaa03e38eaf"
seconds = int(report_id.split("-")[1][:8], 16)
print(dt.datetime.fromtimestamp(seconds, dt.timezone.utc))
# 2026-09-28 17:13:34+00:00, 15 days before the email
Searching the logs for that ID on the day of the email found nothing, which looked like a new, untraceable error. Decoded, it pointed at a known crash, already fixed, and the shopper's cart had not been touched since that minute.
Errors with no Report ID
The site already had an error watch that I had built: it groups the error log into kinds and emails only when something needs doing. It treated a Report ID as the sign that a shopper had seen an error. The sign-in loop never wrote one. An uncaught PHP error shows Magento's generic error page, which has no ID, so 164 crashes on 12 customer accounts in two weeks never counted as a shopper being shown anything. The loop also showed up as 23 different kinds, because the stack ran out at a different place each time.
Reading the web server's access log beside the error log fixed it. Every HTTP 500 a shopper received is in the access log; the error entry that request wrote follows within seconds (a median of 8, all within 106). Pairing them needs care. Only an entry that ends a request on its own counts (a Report ID or an uncaught PHP error), and the kind of request must match the code in the stack. Pairing on time alone matched one shopper's handled payment message to another shopper's crash.
With the pairing, a stack overflow keyed on the module that loops, and a rule for a shopper who hits the same error three times in a day, a replay of those two weeks named the customer who later wrote in about it 11 minutes after their first crash, two days before their email.
The six faults
“Stopped” is a cart that hit the fault at least once. “Lost” is a shopper with no order anywhere within 14 days, on the website or through the sales desk. “Phoned” is a shopper who ordered through the sales desk instead. Figures are per month at a normal month's order volume, each fault measured over its own window.
| Fault | Status | Stopped | Lost | Phoned |
|---|---|---|---|---|
| Tax add-on crash at Place Order, signed-in customers only. Hit about one signed-in checkout in four. | Fixed | 180 | 65 | 31 |
| Card address check cancelling the bank's approval, worsened by checkout sending the shipping address as billing | Fixed | 78 | 17 | 8 |
| Sign-in loop through the tax request logger | Fixed | 24 | up to 13 | 0 |
| “telephone is required” when the phone number was filled in | Fixed | 22 | 2 | 0 |
| Address form refusing ordinary text, such as the full stop in “St. Louis” | Fixed | 18 | 2 | 4 |
| Web host refusing current Chrome versions | Fixed | 9 | not known | not known |
The tax add-on crash was the expensive one. In the 15 days the logs covered, it failed 266 times on 81 carts. 38 of those customers got an order through on a later try, 14 phoned it in, and 29 didn't order at all, with $19,623 in their carts.
The address form fault is Magento's own validator, which allows a city only letters, spaces, hyphens and apostrophes. I ran it against the saved addresses of customers who had ordered in the past year: of the 73 cities with any other character, it refused 69. With the vendor's patch it accepted 72.
The card check is a fraud rule, switched on after a run of fraudulent orders that all came from accounts made minutes before ordering. The cost falls on good customers: of the 46 shoppers it turned away in the first half of October, 23 had ordered more than 90 days earlier. The fix exempts established accounts when the card's security code matches, and leaves new accounts and guests as they are.
The conservative upside
The table above is scaled to a normal month. For a figure I'd defend to a finance team, I cut it back hard:
- Only shoppers who never ordered anywhere within 14 days. A customer who phoned the order in counts as kept.
- The measured windows as they were, not scaled up to a normal month, although those windows were slower than usual.
- Nothing for faults whose losses couldn't be valued: the sign-in loop, the browser block, the address prompt and the password emails, none of which leaves a cart value behind.
- For the card check, only half of its lost orders: the share of turned-away shoppers who were established customers.
- Cart value at face, with no credit for repeat business, and counted as revenue rather than profit.
On those terms, the fixes are worth at least 71 orders and $45,000 of carts a month, about 8% of web orders. Most of it is the tax add-on crash, at 59 orders and $39,800. The card check adds 8 orders and $3,800, and the address form and phone fields 4 orders and $1,600.
On top of that, about 36 orders a month no longer need the sales desk to take them by phone, and each of those was a customer who had already tried and failed once.
What works and what doesn't
What works
- Reading the customer's own words before investigating the summary
- Decoding a quoted Report ID to date the error before searching for it
- Treating the payment module's table as the full record of card attempts
- Pairing access-log 500s with the error entry each request wrote
- Following every affected shopper into the ERP to separate lost orders from phone orders
- Scaling a slow month by order count, and checking the result against a month that went wrong (the tax crash alone accounts for most of one month's shortfall)
What doesn't
- Taking a one-line complaint as the diagnosis
- Testing on staging without comparing its settings to production
- Alerting only on errors that have a Report ID
- Counting failures from the error log alone, or refused shoppers from 403s alone
- Scaling a slow month by revenue when the faults scale with checkouts
None of this needed anything beyond read access to the logs, the store's database and the ERP's order history, so the same steps work on any store that has them.