• I have two files that keep deleting themselves on a new WordPress site I’ve created.

    1. /wp-includes/class-oembed.php
    2. /wp-content/plugins/jetpack/class.media-summary.php

    All my plugins are up-to-date, and most are similar to other sites I run that don’t have this issue. For plugins that are different, I’ve tried running alternative plugins, no change. I’ve reinstalled WordPress from scratch, no change.
    I enabled debugging, but it just tells me when the issue starts, not what is deleting the files.
    Any ideas on how I can try and work out what is causing just these two files from being deleted?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter khalishi

    (@khalishi)

    Oh, forgot to add, when I add these files back in, everything works again fine until it happens again.

    Do you have a copy of the site running locally, or can you get this set up to see if it happens there as well?

    My initial thought for what’s causing this is something the host has set up on the server and so setting the site up locally will help you confirm that.

    We’ve run into some issues before where the host was reverting the .htaccess file to the default every time it was changed (when we added redirects, for example). It’s possible that something similar is happening for this site with these files and so I’d consider contacting the hosting company.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Two PHP files keep deleting themselves!’ is closed to new replies.