I noticed recently on my WordPress website I\'m getting sometimes 500 Internal Server Error. I checked logs and I have many lines like:
[Mon Oct 03 01
I had the same issue with "wp-db.php on line 1832" and disabling iThemes Security plugin as was mentioned before worked well for me. However, if you still need to protect your site it's not the solution.
What you need to do is to fix directory permissions of key areas such as wp-content, wp-includes etc...
Go to iThemes Security settings -> File Permissions (Configure Settings) and check if all permissions are set properly. Once you fix permissions as they supposed to be, you won't see that error anymore.