Cloudflare Error 504, Sitegrounds CPU usage high, Bad Bot hitting my site

I need some assistance, My blog post can’t open, I keep getting error 504 from CF and i noticed my Sitegroound CPU time usage is extremely high. I think my site is being hit by bad bots and IPs.
Kindly assist on this.

@nwadike3 The rest of the site is running fine and quick. I’d look at the error logs for that forum.

the only pages that work are
Homepage -
Category pages

Posts are not opening.

If you didn’t make any changes to your Cloudflare settings before this started happening, it must be something on the origin server that is causing this. You should check there for error logs.

I didnt make any changes on CF.


I noticed bots are hitting my site too frequently

Unknown robot (identified by ‘bot’ followed by a space or one of the following characters _+:,.;/-)

Siteground is really disappointing

I’d put the bot problem aside (for a few minutes) because if that’s the problem, your entire site should be affected not just posts. You really need to open File Manager, search & read your error_log to see what’s happening.

Current Errors detected;

PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (This is the most frequent)

WordPress database error Deadlock found when trying to get lock

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback

im not a developer, I dont even know how all these problem came about or how to resolve it. I’m thnking of changing host. This is disappointing.

I made some changes to my permalink structure some weeks ago, and i thnk this might be the cause.

i changed it from /%year%/%monthnum%/%postname%.html to

I then added a redirect rule to my htacess file to handle the redirects

Everything was fine till now.

If everything was fine until now, I wouldn’t start making too many changes or you’ll just start digging bigger holes.

Where the logs were located and what lines and files they point to will narrow down the problem.`

**And the Firewall rules for are breaking the site and will simulate a bot attack when it isn’t.

So what do you suggest?, btw, Thank you for all your help, I’m just so sad right now i forgot to mention it earlier.

1 Like

Good News. I deactivated all plugins and my site is back again.

I have to now look for plugin that caused the issue.

1 Like

My pleasure. Panick and nuclear options seem to be natural reactions for most.
Anyways… Glad it stopped but like I’ve said it the previous posts, look for error_log. There should be error_log in the affected plugin directory if not, lines in other error_log that point to it’s /wp-content folder.

As for troubleshooting, go to your Cloudflare Dashboard, disable the Firewall Rules (they’re breaking the site too) , set your site in Development Mode, Purge Everything, and begin enabling plugins one at a time until it breaks, Leave caching plugins and security plugins last.

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