# Error with manual install: Failed opening required '\_\_DIR\_\_/lib/discourse.php'

**URL:** <https://meta.discourse.org/t/error-with-manual-install-failed-opening-required---dir---lib-discourse-php/28788>\
**Category:** WordPress\
**Created:** [5월 13, 2015, 9:02오후 UTC](https://meta.discourse.org/t/error-with-manual-install-failed-opening-required---dir---lib-discourse-php/28788 "2015-05-13T21:02:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mikegreenberg](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@mikegreenberg](https://meta.discourse.org/u/mikegreenberg)\
**Post date:** [5월 13, 2015, 9:11오후 UTC](https://meta.discourse.org/t/error-with-manual-install-failed-opening-required---dir---lib-discourse-php/28788/2 "2015-05-13T21:11:46Z")

</div>

Additionally, after installing the plugin and attempting to trigger a post to discourse, I got:

```
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php on line 470

Warning: file_get_contents(http://[HOSTNAME]/posts) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php on line 470

Warning: First parameter must either be an object or the name of an existing class in [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php on line 475

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php on line 470

Warning: file_get_contents(http://[HOSTNAME]/posts) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php on line 470

Warning: First parameter must either be an object or the name of an existing class in [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php:470) in [REDACTED]/public_html/blog/wp-admin/post.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at [REDACTED]/public_html/blog/wp-content/plugins/wp-discourse/lib/discourse.php:470) in [REDACTED]/public_html/blog/wp-includes/pluggable.php on line 1196

```

1. I setup the API key from discourse and configured the “system” username. Wordpress install is latest vanilla (4.2.2).

- I loaded an existing post, clicked on “Post in discourse” in the publishing area and clicked “Update”
- Above errors were displayed.

---

_[View the full topic](https://meta.discourse.org/t/error-with-manual-install-failed-opening-required---dir---lib-discourse-php/28788)._
