Serious Bugs on Usage & Logs  [SOLVED]

User avatar
hexacube
Posts: 18
Joined: Mon 27. Jul 2020, 09:48
Location: India
Contact:

Re: Serious Bugs on Usage & Logs

Post by hexacube »

@george. Thank You. I can understand the issue is either theme related or bruteforce attack related. Let me solve it with the help of stack overflow.
User avatar
hexacube
Posts: 18
Joined: Mon 27. Jul 2020, 09:48
Location: India
Contact:

Re: Serious Bugs on Usage & Logs  [SOLVED]

Post by hexacube »

Fixed the issue. I have setup a monitor to alert high CPU usage, which alerted me 11.45 PM IST. Logged into terminal and using ncdu found the same issue.

The size of log file "error.log" under /home/users/tasteofsouthindia/logs was rapidly increasing around 10 MB per second.

The below mentioned code in header.php created the issue:

Code: Select all

					
<?php if ( is_shop() ) : ?>
<h1><?php woocommerce_page_title(); ?></h1>
<?php else : ?>
<h1><?php the_archive_title(); ?></h1>
<?php endif; ?>
Solved by completely disabling if conditions. Now the bug is fixed.

Thank you all who helped me in finding the issue and making me fix it.
Locked