Support

Account

Home Forums General Issues Files suddenly gone

Solved

Files suddenly gone

  • Hello,

    We have a WordPress+WooCommerce shop running. On the site, of course, I use ACF Pro.

    Over the past week, we have experienced that our website does not work as intended at strange times. Typically after midnight between 2 and 6.

    Until this day, I have fixed the problem by deploying of wp-content/plugins directory and wp-content/themes directory. That has solved the problem. I have not had time to investigate what was wrong. So a quick fix was the solution.

    Today, however, I had time to examine which files were actually missing.

    Here I find that 116 files are missing in wp-content/plugins/advanced-custom-fields-pro

    I have disabled changes to files on the webserver, due to local environment.

    define('DISALLOW_FILE_EDIT', true);
    define('DISALLOW_FILE_MODS', true);

    I maybe think ACF tries to update, but can’t get through with it?

    Have any of you experienced something similar happen?

  • I found the problem myself.

    When you define disallow file edit and mods

    define('DISALLOW_FILE_EDIT', true);
    define('DISALLOW_FILE_MODS', true);

    and the plugin auto-updates is still active it will delete the files and try download the updated ones. Since there can’t be any changes, it will stop and then break the plugin.

    Found this plugin to manage updates, when you have a local development environment
    Easy Updates Manager
    https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.