Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Kevin Ok
PLUS
Kevin Ok
Courses Plus Student 21,995 Points

The contents of my suggest.php file deleted itself while I was working on it.

While I was following along in workspaces, the contents of my suggest.php suddenly cleared. To be precise, the file suggest.php is there but all of the work in it is gone. I was left with a blank page starting at line 1. This happened while I was working on it. I'm sure I didn't select all and delete or anything. I immediately tried undoing but that didn't bring anything back. All my other files are intact. Any idea what could have happened and if there is a way to recover my work? I've been working on this project for weeks now...

On a related note, a few moments before this happened I had another issue where the contents of that same file suddenly turned into a bunch of red dots that covered the entire file. I closed the suggest.php tab and reopened it and it was back to normal. Perhaps this is something related to my issue. Please look into it and see if there is any way I can get my files back...

1 Answer

Mike Henry
PLUS
Mike Henry
Courses Plus Student 5,373 Points

Kevin, I do not know how to get your file back, but I suggest that you just download the "project files" zip and use the suggest.php file from there and copy it to the workspace. I use a local text editor with "wamp" running a local server. Then I commit my work using git/github to ensure I always have a method to recover my work.