Sounds similar to my power issues that i mentioned earlier.
#932
The wifi and/or the HDD is pulling too much power from the pi. Also, what power supply are you using for the pi? 2A minimum is my advice. It is hard to debug power issues on the pi because somethings work and others don't. It can be fickle like that.
mm