# Opencart(2.3.0.2) Elasticsearch(6.7.0) have problem

**URL:** <https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169>\
**Category:** Elasticsearch\
**Created:** [April 3, 2019, 10:52am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169 "2019-04-03T10:52:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![junhyuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junhyuk/32/41948_2.png) [@junhyuk](https://discuss.elastic.co/u/junhyuk)\
**Post date:** [April 3, 2019, 10:52am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169/1 "2019-04-03T10:52:28Z")

</div>

I want to use Opencart Elasticsearch.

So first, setting elasticsearch 6.7.0 by yum, java 1.8 on centos6.9

And I bought Opencart Elasticsearch, Setting is almost finished.

On Opencart extensions page, I have installed by Extension Installer and

Modifications. But when I fill out Extensions/Extensions/module It has

problem. And It doesn't have the Elastic Search menu option.

I have installed composer by "monolog/monolog": "\>=1.1.0"

The error log is like this ;

PHP Fatal error: Cannot use object of type Elasticsearch\Common\Exceptions\Curl\CouldNotConnectToHost as array in /usr/local/httpd2/htdocs/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php on line 122

Sometimes change from CouldNotConnetToHostException to CouldNotResolveHostException, And also sometimes this error not occur and I can show success message. although I didn't show Elastic Search menu option(under the admin side panel).  
Reason why is firewall problem? I really don't know.. please give me the idea. thanks.

 ![webkul%20seccess](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f38b15ee7770e1cf60916cfe31bcccc5f61eb8c6.png)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 4, 2019, 9:56am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169/2 "2019-04-04T09:56:43Z")

</div>

hey!

I think you may be better of to ask this question in the opencart forum, as this looks like a very specific issue how Elasticsearch is used within opencart, especially in combination with some versions of the PHP client and the PHP version.

--Alex

---

<div class="post-metadata">

**Author:** ![junhyuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junhyuk/32/41948_2.png) [@junhyuk](https://discuss.elastic.co/u/junhyuk)\
**Post date:** [April 5, 2019, 1:12am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169/3 "2019-04-05T01:12:20Z")

</div>

Hi,

But OpenCart forum also told me I should ask to here!!

Why you and him said each other ask?

I really hope resolve this issue.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 5, 2019, 8:39am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169/4 "2019-04-05T08:39:47Z")

</div>

Hey,

so my main point here was that this is not a core Elasticsearch problem, but rather an integration one. And I do see that the integration point here is rather opencart and your PHP setup compared to Elasticsearch.

However what might help here is, if you specify the PHP version you are using, the version of the Elasticsearch client in use.

in addition if the exception shows sporadically and sometime it works, it is also possible that your network or your DNS has issues. You could try to just specify an IP address for testing and check if that keeps happening.

--Alex

---

<div class="post-metadata">

**Author:** ![junhyuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junhyuk/32/41948_2.png) [@junhyuk](https://discuss.elastic.co/u/junhyuk)\
**Post date:** [April 5, 2019, 9:28am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169/5 "2019-04-05T09:28:10Z")

</div>

Hi

I appreciate to your answer. first, my PHP version is 7.1 and Opencart version is 2.3.0.1.

in order to resolve DNS issue, I heard I have to setting about inbound port 9200. But I couldn't

understand, why I have to inbound setting? If I want search to my server, I thought It needed

outbound setting. please why I have to set inbound port 9200 instead of outbound.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 3, 2019, 9:28am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169/6 "2019-05-03T09:28:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
