What is the name of the domain?
What is the error number?
520
What is the error message?
Web server is returning an unknown error
What is the issue you’re encountering
Cannot access to my website
What steps have you taken to resolve the issue?
Pause Cloudflare
What are the steps to reproduce the issue?
Enable Cloudflare
Screenshot of the error
fritex
November 3, 2024, 5:26pm
2
I cannot reproduce the error. May I ask if you’re still experiencing such error or it’s solved?
If you temporary Pause Cloudflare, does your Website respond and work fine over the HTTPS?
Use the “Pause Cloudflare on Site” option from the Overview tab for your domain at dash.cloudflare.com .
The link is in the lower right corner of that page.
May I ask what steps for troubleshooting have you tried already regarding those 520 errors?
Error
Try the suggestions in this Community Tip to help you fix “Error 520 : Web server is returning an unknown error”.
Background
Error 520 is essentially a catch-all response when something unexpected happens or when the origin server incorrectly interprets or does not tolerate a request due to a protocol violation or an empty response. A 520 error occurs when the connection started on the origin web server, but that the request was not completed. The most common reason why this would occur …
Thank you very much for your response!
I’ve stopped Cloudflare temporarily and actually, the error code 520 isn’t shown on my website anymore.
That said, it didn’t resolve my problem entirely. By doing so, I gained access to the top page and some of the articles but some pages (eg. Mini Bonsai | bonsaistation.com ) say Origin Unreachable (Error ID: 5e46d77b-56fb-4e37-8bde-2c5e5975735a, Timestamp: 2024-11-03 14:07:20) or others like admin login page say 404 Not Found nginx. I’m not able to click on every article but something is wrong.
I looked into my server files using FileZilla and so far, I found out that plugins are NOT the cause of the problem.
Since there isn’t 520 error on my website anymore, I guess the problem I have now isn’t related to Cloudflare, is it?
If you have any suggestions for the remedy, I would highly appreciate it.
Thank you.
One more thing.
I also checked the error log on the server and I got this message.
[Fri - - [Fri Nov 01 21:41:36.175590 2024][Fri Nov 01 21:41:36.175590 2024, [proxy_fcgi:error, [pid 366140:tid 366302, [client 34.253.212.222:0, AH01071: Got error ‘PHP message: PHP Warning: Use of undefined constant ABSPATH - assumed ‘ABSPATH’ (this will throw an Error in a future version …hp on line 11PHP message: PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/legacy-widget.php’ (include_path=’.:/usr/share/php’)
So, I think there is a problem with ABSPATH but I don’t know where it got from.
Thank you.
Hello !
Error 520 occurs when the origin server returns an empty, unknown, or unexpected response to Cloudflare.
As a resolution, Contact your hosting provider or site administrator and request a review of your origin web server error logs for crashes and to check for these common causes:
Origin web server application crashes
Cloudflare IPs not allowed at your origin
Headers exceeding 16 KB (typically due to too many cookies)
An empty response from the origin web server that lacks an HTTP status code or response body
Missing response headers or origin web server not returning proper HTTP error responses .
For further information, kindly review this document : Error 520: web server returns an unknown error
Thank you !
system
Closed
November 16, 2024, 7:34am
6
This topic was automatically closed after 15 days. New replies are no longer allowed.