parisholley / wordpress-fantastic-elasticsearch

Improve wordpress search performance/accuracy and enable faceted search by leveraging an ElasticSearch server.
MIT License
162 stars 64 forks source link

Installing plugin gives blank page on search page, adding new post etc #102

Closed ghost closed 9 years ago

ghost commented 9 years ago

I have WordPress 4.0.1 installed on a Ubuntu server. I installed elasticsearch successfully tested it as up and running with curl http://localhost:9200 and it shows status 200.

Now after installing the plugin successfully and activating it, it has following issues:

  1. Search page is blank. i.e. site.com/?s=digital gives a blank page.
  2. When i try to add any new post, post gets added but http://site.com/wp-admin/post.php gives blank screen.

Both of above work fine, if i deactivate the plugin. I even changed theme to check if there is some template related issue. But no progress.

Another issue: In wordpress dashboard, when i do Rebuild index, it show content being indexed but i check the elasticsearch in server by curl http://localhost:9200/_stats?pretty=1 and it gives following: { "_shards" : { "total" : 0, "successful" : 0, "failed" : 0 }, "_all" : { "primaries" : { }, "total" : { } }, "indices" : { } }

which means it has no indexes being added by WordPress plugin at all.

Please help resolve above issues.


Update: I looked into log file and it gives following info: PHP Fatal error: Call to undefined function Elastica\Transport\curl_init() in /var/www/wp-content/plugins/fantastic-elasticsearch/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php on line 183 Regards

ghost commented 9 years ago

Okay, resolved it. Actually need to install php curl. One can install using sudo apt-get install php5-curl and then restart apache2