Plugin Contributor
iSaumya
(@isaumya)
Hi @omusman,
Thanks for sharing the screenshot of the console. Unfortunately, Error 524 means server timed out. Which means your server was unable to complete the request. It might be possible that your server is super slow and overcrowded and unable to process that request (as that is the most common reason). But again this is not a plugin problem. Just while writing to you, I’ve tested that feature again on a production site and it works perfectly.
I will highly recommend you to check this Cloudflare doc link to understand the Error 524 more clearly: https://support.cloudflare.com/hc/en-us/articles/115003011431-Error-524-A-timeout-occurred#524error
I tried to Purge whole cache that worked.
I am on Vultr i have connected Varnish can this cause those errors?
Hi @omusman ,
please click on the purge cache link that causes the timeout error, then copy and paste here the logs from the moment of the click
Hello:
I disabled the varnish and tried it worked, i am on Cloudways
here are the logs:
[2020-12-14 11:46:05] [preloader::task] Preloading URL https://example.com/investments/do-a-100-out-of-100-roi-investment/
[2020-12-14 11:46:06] [varnish::purge_single_url_cache] Error: cURL error 28: Operation timed out after 5000 milliseconds with 0 out of 0 bytes received - Retry using http://
[2020-12-14 11:46:06] [varnish::purge_single_url_cache] Send purging request to http://127.0.0.1:8080/author/admin/
[2020-12-14 11:46:06] [varnish::purge_single_url_cache] Response body: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
Varnish settings:
https://i.imgur.com/Ly8dtzy.png
XMLRPC is Disabled
-
This reply was modified 5 years, 7 months ago by
omusman.
Ok let me check on Cloudways
I confirm the issue with Cloudways. The issue is fixed on upcoming release. Please wait π
It worked!
The PHP error log gives this Notice errors it used to throw before the update 4.3.7.4 and after the update.
Errors:
plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 1935
plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 1936
-
This reply was modified 5 years, 7 months ago by
omusman.
Hi @omusman ,
can you paste the complete PHP log? I see only file and line number but not the error
[Dec 15, 14:15:26] PHP Notice: Undefined offset: 3 in /home/example.cloudwaysapps.com/example/public_html/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 1975
[Dec 15, 14:15:26] PHP Notice: Undefined offset: 3 in /home/example.cloudwaysapps.com/example/public_html/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 1974
Hi @omusman ,
thanks. Into the debug.log of the plugin, you should see a log that starts with:
[cache_controller::start_cache_preloader_for_specific_urls] Adding these URLs to preloader queue:
Can you please paste it here?
There are array links with:
`domain.com/?p=19520
domain.com
/?p=19520feed/
domain.com/author/admin/feed/’
these are the recent array, there are 5 of them like this with different category page and feed pages.
-
This reply was modified 5 years, 7 months ago by
omusman.
Most of the time i see these PHP notice when i update or publish post. Some post publish right off and some post just keep loading for a while in the admin panel, they are published on front-end but idk what keep them loading. i see no errors on console.