Error 521 web server down only when editing Wordpress posts (Cloudflare + WP Bakery + WPML)

#1

Hi there,

I see lot of people having the same issue, Error 521 on wordpress sites using Cloudflare.
In my case everything works smooth but when I try to update a post, the website get unstable… slow and I get lots of 521 errors.

When I deactivate Cloudflare everything works fine again.
At Dreamhost they say it’s a Cloudflare issue.

My website is: www.sosfactory.com

I have not much knowledge, can anybody help me to isolate the issue?
Thanks a lot.
Sergio

#2

Do you have security plugin installed on WP?

#3

Not really, why?

#4

One way that could happen is your server blocks access to some URLs (here URLs related to administrative tasks) when the request comes from CF network.

#5

Every suggestion in this article points to the origin server blocking requests, and there should be some evidence in their logs:

#6

I redirected this article to my hosting provider support and it seems there is no issues on their side… so for now I didn’t have any other option than stop using Cloudflare when developing my website.

#7

I have some more insights in case anyone experience the same problem.

I use Cloudflare for a Wordpress site with 2 plugins: WP Bakery (visual composer) and WPML (translation plugin).

When I have Cloudflare + WP Bakery + WPML I get web server down errors when editing pages/posts, if I deactivate 1 of these 3 elements my website works fine.

#8

With this info my host provider finally found the solution:

Default PHP values were:

Memory 64
input time 30
max execution time [120]
max input vars [1000]

And they changed it to:

memory_limit = [128]
max_input_time = [300]
max_execution_time = [300]
max_input_vars = [3000]

I contacted them a few times before and they insisted it was a Cloudflare error, so in case anybody gets those errors… just insist with your hosting provider.

2 Likes
closed #9

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