# Sudden fatal error caused by "failed to open stream"

**URL:** <https://www.patreondevelopers.com/t/sudden-fatal-error-caused-by-failed-to-open-stream/4492>\
**Category:** Wordpress Plugin\
**Created:** [May 25, 2021, 3:58pm UTC](https://www.patreondevelopers.com/t/sudden-fatal-error-caused-by-failed-to-open-stream/4492 "2021-05-25T15:58:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SinArcade](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@SinArcade](https://www.patreondevelopers.com/u/SinArcade)\
**Post date:** [May 25, 2021, 3:58pm UTC](https://www.patreondevelopers.com/t/sudden-fatal-error-caused-by-failed-to-open-stream/4492/1 "2021-05-25T15:58:14Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [May 26, 2021, 6:14pm UTC](https://www.patreondevelopers.com/t/sudden-fatal-error-caused-by-failed-to-open-stream/4492/2 "2021-05-26T18:14:21Z")

</div>

> [@SinArcade](#):
>
> patreon\_login.php

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.

---

<div class="post-metadata">

**Author:** ![SinArcade](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@SinArcade](https://www.patreondevelopers.com/u/SinArcade)\
**Post date:** [May 26, 2021, 6:19pm UTC](https://www.patreondevelopers.com/t/sudden-fatal-error-caused-by-failed-to-open-stream/4492/3 "2021-05-26T18:19:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [May 27, 2021, 8:33pm UTC](https://www.patreondevelopers.com/t/sudden-fatal-error-caused-by-failed-to-open-stream/4492/4 "2021-05-27T20:33:30Z")

</div>

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.
