Sudden fatal error caused by "failed to open stream"

Hi,
My setup was working fine until I discovered my site was no longer working today.

I was getting the errors below. I had to delete the patreon plugin folder in order to access the admin. But when I try to install the plugin again, it says “Plugin could not be activated because it triggered a fatal error.” The same errors appear here as well.

Warning: include_once(patreon_login.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 33

Warning: include_once(): Failed opening ‘patreon_login.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 33

Warning: include_once(patreon_routing.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 34

Warning: include_once(): Failed opening ‘patreon_routing.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 34

Warning: include_once(patreon_frontend.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 35

Warning: include_once(): Failed opening ‘patreon_frontend.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 35

Warning: include_once(patreon_api.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 36

Warning: include_once(): Failed opening ‘patreon_api.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 36

Warning: include_once(patreon_oauth.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 37

Warning: include_once(): Failed opening ‘patreon_oauth.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 37

Warning: include_once(patreon_options.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 38

Warning: include_once(): Failed opening ‘patreon_options.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 38

Warning: include_once(patreon_metabox.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 39

Warning: include_once(): Failed opening ‘patreon_metabox.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 39

Warning: include_once(patreon_user_profiles.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 40

Warning: include_once(): Failed opening ‘patreon_user_profiles.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 40

Warning: include_once(patreon_protect.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 41

Warning: include_once(): Failed opening ‘patreon_protect.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 41

Warning: include_once(patreon_compatibility.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 42

Warning: include_once(): Failed opening ‘patreon_compatibility.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 42

Warning: include_once(patreon_admin_pointers.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 43

Warning: include_once(): Failed opening ‘patreon_admin_pointers.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 43

Warning: include_once(patreon_content_sync.php): failed to open stream: No such file or directory in classes/patreon_wordpress.php on line 44

Warning: include_once(): Failed opening ‘patreon_content_sync.php’ for inclusion (include_path=’.’) in classes/patreon_wordpress.php on line 44

Fatal error: Uncaught Error: Class ‘Patreon_Routing’ not found in classes/patreon_wordpress.php:46 Stack trace: #0 /services/webpages/s/mysite.com/public/site/wp-content/plugins/patreon-connect/patreon.php(151): Patreon_Wordpress->__construct() #1 /services/webpages/s/mysite.com/public/site/wp-admin/includes/plugin.php(2300): include(’/services/webpa…’) #2 /services/webpages/s/mysite.com/public/site/wp-admin/plugins.php(191): plugin_sandbox_scrape(‘patreon-connect…’) #3 {main} thrown in classes/patreon_wordpress.php on line 46

Thanks!

Either something deleted that file in your WP install, or something weirder happened. Regardless, you can try deactivating/uninstalling the plugin and reinstalling it. You dont need to disconnect your site before that.

That file (and all other files) is present when I check it. I have tried to delete/uninstall/reinstall many times but the result is the same. Any other things i can try?

If a file that you see to exist is told to be non existent by WP, then you should contact your web host.

This may be caused by things like Opcache which cache code when the cache is not refreshed as well.