How to troubleshoot edit node page timeout errors? When I try to update the body of a basic page, Drupal 7 times out after I press the "Save" button and wait for a while. Surprisingly, I can successfully update my other pages through Drupal forms.

I cleared all caches but that didn't help.

I tried to update the content by editing the database directly, but, my changes to the database tables "field_data_body" and "field_revision_body" didn't affect my web page.

How I can troubleshoot the timeout error when I try to update the contents of a basic page in Drupal 7?
I'd guess that a module is performing some task in either form processing or Node API Hooks. It might be communicating with a remote service, or simply taking a long time to perform some action. It might also just be that the DB communication is slow. If such an action takes too long, you'll hit the PHP timeout and the script will terminate.

You could identify which module by several means -


Debugging (eg add debug code with times to module_invoke_all() to see which hooks take a long time)
Understanding the purpose of your modules (I wonder if "Submit To Myspace" module is slowing things down?)
Process of elimination (turn off likely candidates until the problem goes away, turn them back on one by one until it recurs)


Note that the last approach is not the most dependable; if you have a 180s timeout, and module A takes 160s, module B takes 15s, and the rest of Drupal takes 6s, you could easily be mistaken in seeing the issue go away when you disable module B, despite A being the guilty party.

If the issue affects a single page, then sit back and study what might make that specific page different. Eg LinkChecker module (if installed) tries to retrieve linked images or URLs; and if those sites timed out, your node edit might also.