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: 220.127.116.11, 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: 18.104.22.168, 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