Discourse / Wordpress / Fastcgi Error


#1

Hi everyone,

I’m using easyengine as my install method, however, I’d say this is more of a configuration issue. I’ve got discourse and wordpress setup working happily together, but I’m trying to get the wp-discourse plugin going properly and I’m having trouble getting them to talk to each other. In my logs, I’m getting the following error. I’m not quite sure what changes I need to make. Firewall?

[error] 4319#0: *274362 FastCGI sent in stderr: "PHP message: PHP Warning: First parameter must either be an object or the name of an existing class in /var/www/josiahtoppin.com/htdocs/wp-content/plugins/wp-discourse-0.6.6/lib/discourse.php on line 507

PHP message: A valid URL was not provided" while reading response header from upstream, client: 209.153.242.34, server: josiahtoppin.com, request: “GET /2016/01/we-shall-get-this-working/ HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “www.josiahtoppin.com”, referrer: “http://www.josiahtoppin.com/blog/

That is when I visit the post page.

Here is the error on the plugin page itself.

2016/01/24 13:57:26 [error] 4319#0: *274387 FastCGI sent in stderr: “PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/josiahtoppin.com/htdocs/wp-content/plugins/wp-discourse-0.6.6/lib/admin.php on line 257” while reading response header from upstream, client: 209.153.242.34, server: josiahtoppin.com, request: “GET /wp-admin/options-general.php?page=discourse HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “www.josiahtoppin.com”, referrer: “http://www.josiahtoppin.com/wp-admin/

Anyone have any ideas?

I’m using this config: https://meta.discourse.org/t/using-nginx-alongside-the-docker-install/15282/3 for the discourse forward and that is working fine.

This is the wordpress plugin: https://github.com/discourse/wp-discourse - It is fairly stable according to the discourse folks as it is authored by them.

Site itself is over at http://www.josiahtoppin.com and http:/discussion.josiahtoppin.com


#2

Hey Josiah, great site you got there!

Any chance you can tell me how you installed Discourse on a server with EasyEngine WordPress? I need it for my thesis and don’t have much time anymore to test a lot, so if you could help me out that would be great. Thanks.


#3

@Ben_James Sure thing.

I setup Discourse using this guide. They use DO, but I use Linode. Same thing if you ask me.

Email was a bit of a pain to get going initially, since my configuration wasn’t correct.

I initially had Nginx working using this method.

I believe I changed over to this method. Regardless, I’m using one or the other. :slight_smile:

As for getting posts to pull into Discourse from Wordpress itself, I ended up using a Wordpress plugin that isn’t the official plugin they offer. The errors in this post persisted with the “official” plugin and I found another one that worked out of the box. I can’t comment too much on load performance as the website is sitting pretty stagnant at the moment.


#4

Thanks a lot, I appreciate it. I actually got it running, although I haven’t tried wp integration yet. Could you also tell me the name of the other Plugin? Thanks.


#5

@josiahtoppin any chance you can tell me the name of the unofficial plugin? I can’t seem to find anything beside the official one.


#6

Hell @josiahtoppin

Do you solve this issue? or not? I don’t know hot to install discourse in the Easyengine environment, so would you share your config file in the standard Easyengine environment with letsencrypt option.

If you don’t mind, please share your config file not the other link information. Thank you so much.

I am desperate to install discourse in the Easyengine environment.


#7