# Wordpress Posts hang with following error

**URL:** https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678
**Category:** WordPress
**Created:** [June 5, 2015, 11:09am UTC](https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678 "2015-06-05T11:09:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ankh2054](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankh2054/32/116173_2.png) [@ankh2054](https://meta.discourse.org/u/ankh2054)
#### Post date: [June 5, 2015, 11:09am UTC](https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678/1 "2015-06-05T11:09:50Z")

</div>

Hi all,

Ive installed and configured my discourse plugin.  
URL is entered as [http://meta.website.co.uk](http://meta.website.co.uk)  
API key is configured

When I create new posts - I now cannot open the posts on wordpress. It’s probably trying to publish to [meta.website.co.uk](http://meta.website.co.uk).

ERROR:

```
47:49 [error] 4775#0: *3095 FastCGI sent in stderr: "PHP message: PHP Warning: file_get_contents(meta. 47:49 [error] 4775#0: *3095 FastCGI sent in stderr: "PHP message: PHP Warning: file_get_contents(meta.site.co.uk/posts): failed to open stream: No such file or directory in /var/www/site/wp-c$
PHP message: PHP Warning: First parameter must either be an object or the name of an existing class in /var/www/site/wp-content/plugins/wp-discourse-0.6.5/lib/discourse.php on line 472
PHP message: PHP Warning: file_get_contents(/wordpress.json?best=5&amp;min_trust_level=1&amp;min_score=30&amp;min_replies=5&amp;bypass_trust_level_score=50&amp;api_key=bba0f68b9b5eb4aa78128e33cb83568b755369917edfd8762$bomm.co.uk/posts): failed to open stream: No such file or directory in /var/www/site/wp-c$
PHP message: PHP Warning: First parameter must either be an object or the name of an existing class in /var/www/site/wp-content/plugins/wp-discourse-0.6.5/lib/discourse.php on line 472
PHP message: PHP Warning: file_get_contents(/wordpress.json?best=5&amp;min_trust_level=1&amp;min_score=30&amp;min_replies=5&amp;bypass_trust_level_score=50&amp;api_key=bba0f68b9b5eb4aa78128e33cb83568b755369917edfd8762$

```

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [June 5, 2015, 11:49pm UTC](https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678/2 "2015-06-05T23:49:01Z")

</div>

Looks like the same problem as this topic, see [my answer](https://meta.discourse.org/t/getting-an-error-when-posting/24666/9) over there:

> [@Getting an error when posting](https://meta.discourse.org/t/getting-an-error-when-posting/24666):
>
> Everytime I try to post an article in Wordpress, I end up with the following errors: Warning: file\_get\_contents([forum.jk-junkies.com/posts](http://forum.jk-junkies.com/posts)): failed to open stream: No such file or directory in /homepages/1/d563246168/htdocs/blog/wp-content/plugins/wp-discourse-master/lib/discourse.php on line 469 Warning: First parameter must either be an object or the name of an existing class in /homepages/1/d563246168/htdocs/blog/wp-content/plugins/wp-discourse-master/lib/discourse.php on line 474 War…

---

<div class="post-metadata">

### Author: ![ankh2054](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankh2054/32/116173_2.png) [@ankh2054](https://meta.discourse.org/u/ankh2054)
#### Post date: [June 8, 2015, 8:40am UTC](https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678/3 "2015-06-08T08:40:28Z")

</div>

Hi Dean,

Thanks I tried that but it then just adds the additional http://. I am going to try and uninstall the plugin and re-install.

Error:

```
2015/06/08 09:38:22 [error] 23766#0: *3000 FastCGI sent in stderr: "PHP message: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/bom$
PHP message: PHP Warning: file_get_contents(http://http://meta.bommachine.co.uk/posts): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/bommach$
PHP message: PHP Warning: First parameter must either be an object or the name of an existing class in /var/www/bommachine/wp-content/plugins/wp-discourse-0.6.5/lib/discourse.php on line 472
PHP message: PHP Warning: file_get_contents(/wordpress.json?best=5&amp;min_trust_level=1&amp;min_score=30&amp;min_replies=5&amp;bypass_trust_level_score=50&amp;api_key=143fc2cc27e8db2ab115e5ce27a304d0b

```

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [June 8, 2015, 11:17am UTC](https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678/4 "2015-06-08T11:17:36Z")

</div>

It looks like you added it in the wrong place or a different setting has an issue as the last error clearly is missing both a `http://` and the hostname.

---

<div class="post-metadata">

### Author: ![ankh2054](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankh2054/32/116173_2.png) [@ankh2054](https://meta.discourse.org/u/ankh2054)
#### Post date: [June 8, 2015, 11:52am UTC](https://meta.discourse.org/t/wordpress-posts-hang-with-following-error/29678/5 "2015-06-08T11:52:57Z")

</div>

Working in the end, I removed plugin, cleaned database and re-installed working fine now.  
thanks for your help
