Wordpress Posts hang with following error

Hi all,

Ive installed and configured my discourse plugin.
URL is entered as 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.

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&min_trust_level=1&min_score=30&min_replies=5&bypass_trust_level_score=50&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&min_trust_level=1&min_score=30&min_replies=5&bypass_trust_level_score=50&api_key=bba0f68b9b5eb4aa78128e33cb83568b755369917edfd8762$

Looks like the same problem as this topic, see my answer over there:

2 Likes

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&min_trust_level=1&min_score=30&min_replies=5&bypass_trust_level_score=50&api_key=143fc2cc27e8db2ab115e5ce27a304d0b

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.

1 Like

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