PHP code being deleted
-
I’m really at a loss here and hoping someone knows why this is happening.
I installed a new theme last weekend and everything has been running great until last night. Using the theme editor, I made a very minor change to a php file and clicked “update file.” However, after it saved it, where the code was became blank. It seemed to delete the code. I went back to the php file on my desktop, copied the code and pasted it back into the theme editor, clicked update, blank again. Then I went into FTP and reuploaded that php file into the themes directory and replaced the current file there (which was saying 0 bytes at this time). The file was replaced – I went to my blog, the change is not shown. I go back to the FTP site and the file is saying 0 bytes again. It’s literally deleted everything in itself.
I’ve now come to learn that this is happening to every php file I try to edit in WP, regardless of the theme (I tried it in multiple themes). Even uploading the files via FTP does not help – if I tried to edit them in WP, they will just keep getting cleared out.
Help? Please?
- The topic ‘PHP code being deleted’ is closed to new replies.