Title: Delete php files on editing
Last modified: August 1, 2018

---

# Delete php files on editing

 *  Resolved [Dan Caragea](https://wordpress.org/support/users/dancaragea/)
 * (@dancaragea)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/delete-php-files-on-editing/)
 * Hi, Richie
    I read: „This theme is no longer listed in the theme directory.” 
   and „This theme has not been updated for over two years.”, but I am using it 
   for more years… Today I had a problem: I tried to edit (change the URL for a 
   imagine displayed there – http to https) in multisite dashboard/themes/editor(
   context: theme editor) footer.php. I did, after more than 1 minute of „updating”
   I get an error. And footer has disappeared from my site. I looked into cPanel(
   Hostgator) and the file footer.php was really empty (lucky I have backups). I
   tried with functions.php too, the same result. Why is this happening? Thanks,
   in advance.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/delete-php-files-on-editing/#post-10555285)
 * that shouldn’t be happening.
 * did you check the actual file via ftp, not via theme editor?
 * it might show different version since its http vs https changes.
 * check the actual file in theme folder first before any edits.
 *  Thread Starter [Dan Caragea](https://wordpress.org/support/users/dancaragea/)
 * (@dancaragea)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/delete-php-files-on-editing/#post-10555797)
 * I checked now (function.php and footer.php) via cPanel and via theme editor. 
   Both two files are identical.
 *  Thread Starter [Dan Caragea](https://wordpress.org/support/users/dancaragea/)
 * (@dancaragea)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/delete-php-files-on-editing/#post-10555878)
 * I tried again (with WordPress 4.9.8 updated). The message is this:
    „Unable to
   communicate back with site to check for fatal errors, so the PHP change was reverted.
   You will need to upload your PHP file change by some other means, such as by 
   using SFTP.” – from WordPress 4.9 Administration.
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/delete-php-files-on-editing/#post-10558109)
 * not sure about this, wordpress update should not be able or allow to overwrite
   themes php files. is this 2 file only affected?
 * better reupload new version of the theme just in case, backup the old one first
   incase any edit needed to referred.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Delete php files on editing’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mesocolumn/1.6.5.1/screenshot.
   png)
 * MesoColumn
 * [Support Threads](https://wordpress.org/support/theme/mesocolumn/)
 * [Active Topics](https://wordpress.org/support/theme/mesocolumn/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mesocolumn/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mesocolumn/reviews/)

## Tags

 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [footer.php](https://wordpress.org/support/topic-tag/footer-php/)

 * 4 replies
 * 2 participants
 * Last reply from: [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/delete-php-files-on-editing/#post-10558109)
 * Status: resolved