I logged into the admin panel today to remove 1 line of code from my index.php page. I went to the template editor, removed the line and clicked the update button. Everything looked good expect I saw something I wanted to change. So I made the change, and hit update again. Suddenly my site doesn't load, so I checked my index.php file to find that the last 50% of the page was just gone. No longer there.
I had to restore my index page from backup to restore my site. This has happened before. It appears that you can edit the page, save the changes, and when the edit template page reloads it doesn't load the entire file, Therefore when you save again it gets corrupt.
What is causing this and how can I help resolve this error?