On this page
What this issue is
Every page request gets an HTTP status code. Codes starting with 5 mean the server failed, not the visitor. Your landing page is the page people reach from ads, emails or search, and when it returns a 5xx code, the browser shows an error page or a blank screen instead of your content.
| Code | Name | Typical cause |
|---|---|---|
| 500 | Internal Server Error | Code crash, bad plugin or theme update, broken .htaccess or config file, PHP error |
| 502 | Bad Gateway | A proxy, CDN or load balancer got an invalid reply from the origin server, for example PHP-FPM or the app has crashed |
| 503 | Service Unavailable | Server overloaded, out of workers, or in maintenance mode |
| 504 | Gateway Timeout | The origin took too long to answer the proxy or CDN, often a slow database query or external API call |
Why it costs you leads or sales
A visitor who lands on an error page cannot see your offer, fill in your form or reach checkout. If you pay for clicks, you still pay for each one. Ad platforms may also lower delivery or disapprove ads whose landing page returns errors. And because the page never loads, your tracking tags never run, so your reports show fewer visits and conversions than you paid for.
- Ad clickYou pay for the click
- Landing pageServer returns 500/502/503/504
- Form or checkoutNever reached
- ConversionNo lead, no sale, no tracking hit
The visitor never gets past the first step, so every later step is lost.
Example: a page that gets steady ad traffic and normally produces 20 leads a day drops to zero while it returns a 5xx. Numbers are illustrative.
How to check if your site has it
Test the exact URL your ads or emails point to, including any query string. Do not only test the homepage, because a funnel page can fail on its own.
Open the URL in a private window
This avoids cached pages and logged-in sessions that can hide the problem. Note any error text.
Read the status code
In Chrome press F12, open the Network tab, reload, and click the first request. The Status shows the code. Or run the command below.
Test from another network
Try mobile data or a different device. If it fails only for some visitors, see the related guide on intermittent errors.
Note the time and the code
You will need both to match the error against your server logs.
curl -s -o /dev/null -w "%{http_code}\n" -L https://example.com/landing-page/How to fix it
Start with what changed. Most 5xx errors begin right after a plugin or theme update, a code deploy, a config edit, a traffic spike or a hosting change. Then use the code to narrow the cause.
Read the error log
Check your host's error log (often in the hosting control panel under Logs or Errors), the web server log (for example /var/log/nginx/error.log or the Apache error log) and the application log. The line at the time of the failure usually names the file or process.
For 500: undo the last change
Roll back the latest plugin, theme or code update. Check for a broken .htaccess file or a PHP syntax error or memory limit message in the log.
For 502: restart the backend
Restart PHP-FPM or your app process and check it stays up. Confirm your CDN or proxy points to the right origin address and port.
For 503: check load and maintenance mode
Look for a maintenance mode file or setting left on, exhausted PHP workers or a resource limit on your plan. Add capacity or caching if traffic is the cause.
For 504: find the slow part
Look for slow database queries or calls to external services that hang. Fix or cache them, and only then consider raising the timeout.
Contact your host if the log shows nothing
Send them the URL, the code and the exact time. Server-level faults are theirs to fix.
Turn on debug logging
In wp-config.php set WP_DEBUG and WP_DEBUG_LOG to true, reload the page, then read wp-content/debug.log. Turn it off afterwards.
Disable plugins
Rename wp-content/plugins to plugins-off over FTP or the file manager. If the page loads, rename it back and disable plugins one at a time to find the culprit.
Reset .htaccess and check memory
Rename .htaccess, then save Settings > Permalinks to regenerate it. If the log says memory exhausted, raise the PHP memory limit with your host.
Check Shopify status
Shopify hosts the server, so 5xx errors are often on their side. Check shopifystatus.com first.
Review recent theme and app changes
In Online Store > Themes, publish a previous version of the theme. Remove recently added apps that inject code into the page.
Contact Shopify Support
If a default theme still fails, send them the URL, code and time.
Check Webflow status
Webflow hosts the page, so look at their status page for incidents.
Check any reverse proxy or custom domain setup
If you put a proxy or CDN in front of Webflow, confirm it points to the right origin and that its timeout is not too short.
Republish and contact support
Republish the site. If the error continues, send Webflow support the URL, code and time.
Check Wix status
Wix hosts the page, so a 5xx is usually on their side or caused by a custom code or app.
Remove recent custom code and apps
Check Settings > Custom Code and recently added apps, remove the latest one, and republish.
Contact Wix support
Send the URL, code and time if it continues.
Find the failing process
Match the time of a failed request to the application and web server logs. Look for stack traces, out-of-memory kills and upstream timeout messages.
Roll back the last deploy
If the error began with a release, revert it and fix the bug in a staging copy.
Check resources and upstreams
Check CPU, memory, disk space, database connections and any third-party API the page calls while rendering.
How to confirm it's fixed
- The URL returns 200 (or a single redirect to a 200) with the curl command above
- The page renders fully in a private window on desktop and mobile
- The form submits or checkout loads without errors
- Your analytics and ad tags fire on the page (check in the Network tab or the platform's debug view)
- The error log shows no new 5xx lines for the page
- The page still works after 30 minutes and after a cache clear
How to prevent it happening again
- Test plugin, theme and code updates on a staging copy before they go live
- Keep backups and a quick way to roll back
- Use page caching or a CDN so traffic spikes do not exhaust the server
- Choose hosting with enough PHP workers and memory for your ad traffic
- Tell your host or developer before launching a big campaign
- Set up alerts that check the real landing page URL on a schedule
Example: 09:00
A plugin update is installed automatically
Example: 09:02
The landing page starts returning 500
Example: 09:02-15:00
Ad clicks keep arriving and land on the error
Example: 15:00
Someone notices and rolls the update back
How FunnelGuard handles this
FunnelGuard detects this issue. A robot visitor loads your landing page on a schedule, from the EU or the US, as the first step of a journey, and flags the run when the page returns a server error instead of loading. Before anything is sent, the failure is re-checked from a second region, so one network blip does not cause a false alarm. You then get one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. The Free plan checks 1 site with 2 journeys daily, and paid plans have a 3-day free trial. Checks run on a schedule, so a very short outage between runs can be missed.
Questions people ask
Why is my landing page showing a 500 internal server error?
A 500 means the server hit an unexpected problem while building the page. Common causes are a faulty plugin or theme update, a PHP error, a broken .htaccess file or a code bug after a deploy. Check the error log for the exact file and line, then undo the latest change.
What is the difference between 502, 503 and 504 errors?
A 502 means a proxy or CDN got a bad reply from your server. A 503 means the server is overloaded or in maintenance mode. A 504 means the server took too long to answer the proxy. All three are server-side failures, not problems with the visitor's device.
How do I fix a 503 service unavailable error on my website?
Check whether maintenance mode was left on, then check whether the server is out of memory, CPU or PHP workers. Restart the app or PHP process, add caching, and upgrade the plan if traffic is the cause. If the log shows nothing, ask your host.
Will a 5xx error hurt my Google Ads or Meta ads?
You still pay for clicks that land on an error, and conversions cannot happen. Ad platforms can also reduce delivery or disapprove ads when the destination page fails. Pause the campaigns until the page works again.
How do I check if my landing page returns a 5xx error?
Open the URL in a private window and look at the Network tab in your browser's developer tools for the status code. You can also run curl with the -w "%{http_code}" option. Test the exact URL your ads use, including parameters.
Why does my page work for me but show 502 or 504 to other people?
You may be seeing a cached copy or be logged in, while visitors reach the origin server directly. The failure may also be intermittent, regional or only happen under load. Test in a private window and from another network, and check the logs at the time visitors saw the error.
Can I get alerted when my landing page returns a 5xx error?
Yes, with a monitoring tool that checks the page on a schedule. FunnelGuard loads your landing page as a robot visitor, re-checks a failure from a second region, and sends one alert with a screenshot and a likely cause.
Related issues
- OPS-001Whole site down (connection refused / no response)Fix guide
- OPS-004Intermittent 5xx under load (fails some runs only)Fix guide
- OPS-005Page timeout / extremely slow first byteFix guide
- OPS-009Maintenance / coming soon mode left on after workFix guide
- OPS-013Thank-you page down while landing page is upFix guide
- OPS-008Outage between scheduled runs (short downtime missed)Fix guide