Error code 520 on my website

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

I cannot reproduce the error. May I ask if you’re still experiencing such error or it’s solved? :thinking:

If you temporary Pause Cloudflare, does your Website respond and work fine over the HTTPS? :thinking:

  • 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? :thinking:

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 !

This topic was automatically closed after 15 days. New replies are no longer allowed.