[Skip to main content](#vessel-content)

#   Geolocation plugin returns 'API ERROR' on homepage

##

- **[DomJam](/forum/user/12128-domjam "View DomJam's Profile")**
- [![DomJam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12128-domjam "View DomJam's Profile") Topic Author
- [ Offline](/forum/user/12128-domjam)
- Let's get this roll

Less More

- Posts: 37
- Thank you received: 1
-
-
-
-

13 years 1 month ago [\#128350](#128350) by [DomJam](/forum/user/12128-domjam "View DomJam's Profile")  *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128350 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")* was created by *[DomJam](/forum/user/12128-domjam "View DomJam's Profile")*

Hi team !

I have a serious issue ![:(](/media/kunena/emoticons/22.png ":(")

Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the [ www.benedictecaillat.com](http://www.benedictecaillat.com) homepage.
I did nothing particular on this website for around 10 months.

First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing...
Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things:
- disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past)
- checked my API key on [ ipinfodb.com/](http://ipinfodb.com/)
- updated my info and the server IP (in case) on [ ipinfodb.com/](http://ipinfodb.com/)
- remove some JQuery and other Google API calls stuff (you never know)...
- changed the settings in the plugin
- tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...

Nothing works!
Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...

Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.

But I absolutely cannot let things like that anyway.

Help !!
Many thanks in advance,

D.

*** INFO ***
-- url of the page with the problem -- : [ www.benedictecaillat.com](http://www.benedictecaillat.com)
-- HikaShop version -- : 2.2.2 (and the ones before)
-- Joomla version -- : 2.5.14 stable
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- :
**System message
cURL failed. Error: connect() timed out!API returned error:**

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#128426](#128426) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128426 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

Hi,

Your problem is not linked with HikaShop but with the API.
The plugin try to reach the server but it "times out". So :
- Your server have a firewall and can't connect to an external server (or this specific server)
- The external server is down
- The IP is wrong

The problem is resumed with some few word: cURL failed. Error: connect() timed out!
cURL is the library which allow to call an webpage on another server. And it failed due to a connect time out.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DomJam](/forum/user/12128-domjam "View DomJam's Profile")**
- [![DomJam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12128-domjam "View DomJam's Profile") Topic Author
- [ Offline](/forum/user/12128-domjam)
- Let's get this roll

Less More

- Posts: 37
- Thank you received: 1
-
-
-
-

13 years 1 month ago [\#128429](#128429) by [DomJam](/forum/user/12128-domjam "View DomJam's Profile")  Replied by *[DomJam](/forum/user/12128-domjam "View DomJam's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128429 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

Hi,

I'd like it to be that simple.
But then how can you explain:
1) that I have NO issue with the other API connexions (Google font, Analytics...)
2) that when I disable the 'Set currency' on 'No' in your plugin, things work properly (except that Hikashop doesn't select the right currency...).

Especially the n°2 somehow means that there's an issue with the plugin and the API... I have read that they changed something about naming conventions on countries last year... Something like that?

Anyway, I'm afraid it is related to this API.
Your opinion, bearing in mind those news elements?

Thanks for your help

D

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#128438](#128438) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128438 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

Hi,

Google fond and Analytics are not something running in your server which ask him to connect to an external API server.
It is library loaded by the clients, no by your server. So it is very different.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DomJam](/forum/user/12128-domjam "View DomJam's Profile")**
- [![DomJam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12128-domjam "View DomJam's Profile") Topic Author
- [ Offline](/forum/user/12128-domjam)
- Let's get this roll

Less More

- Posts: 37
- Thank you received: 1
-
-
-
-

13 years 1 month ago [\#128439](#128439) by [DomJam](/forum/user/12128-domjam "View DomJam's Profile")  Replied by *[DomJam](/forum/user/12128-domjam "View DomJam's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128439 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

OK, sure about those APIs.
Forget about them.

![:(](/media/kunena/emoticons/22.png ":(")
Nothing explains the n°2 in my last post: why I can let your Plugin published and just disable the 'Set currency' by selecting 'No' to prevent this error to appear. This clearly indicates that the API is reached (the 2 others options in your Plugin are handled!).

![:(](/media/kunena/emoticons/22.png ":(")
And a 3°) point: it was working with this exact configuration for more than 6 months... The OVH server is the same, nothing has changed!

I have tried plenty of things. i really don't see why this is happening now.
Many thanks in advance for your help

Cordialement,
D

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DomJam](/forum/user/12128-domjam "View DomJam's Profile")**
- [![DomJam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12128-domjam "View DomJam's Profile") Topic Author
- [ Offline](/forum/user/12128-domjam)
- Let's get this roll

Less More

- Posts: 37
- Thank you received: 1
-
-
-
-

13 years 4 weeks ago [\#128520](#128520) by [DomJam](/forum/user/12128-domjam "View DomJam's Profile")  Replied by *[DomJam](/forum/user/12128-domjam "View DomJam's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128520 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

![:(](/media/kunena/emoticons/22.png ":(") I really need some help here...
PLease check my previous post...

1) I've got this system error pop up on homepage
2) currency selection doesn't work anymore
3) website is very long to load

If I disable the Geolocation manager, no more error and website load lights peed.
But automatic currency selection is of course not working better.

Again, this was working very well before, on the same server, with the same config. It is NOT a question of server rights, the server is NOT down, and the IPinfoDB conf has been the same from the beginning, and was working fine!

Can't it be that the Plugin got old, and that IPinfoDB API has slightly changed (that's by the way what they claim on their website: [ www.ipinfodb.com/index.php](http://www.ipinfodb.com/index.php)).

On top of that issue, is there another way than geolocation to automatize the currency selection?

I try zillion things, checked internet, your forums...
I need help.

Many thanks in advance,
D

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 4 weeks ago [\#128547](#128547) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128547 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

Hi,

> 1\) I've got this system error pop up on homepage
> 2\) currency selection doesn't work anymore
> 3\) website is very long to load

1) Because your server can't connect to the external server API.
2) Because your server can't connect to the external server API.
3) Because your server try to connect to the external server API but have a connection time out. This time out delay makes the page loading very long.

> But automatic currency selection is of course not working better.

Yes, because you don't call the external server API to get the geolocation of the user and determine his currency.

As I said before, we didn't modify anything in the geolocation plugin (no modification since October 2012, for the J3 compatibility, four lines added) and the plugin works just fine.
So, it is not a problem related to an HikaShop update.
I will repeat myself : Please check your server.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DomJam](/forum/user/12128-domjam "View DomJam's Profile")**
- [![DomJam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12128-domjam "View DomJam's Profile") Topic Author
- [ Offline](/forum/user/12128-domjam)
- Let's get this roll

Less More

- Posts: 37
- Thank you received: 1
-
-
-
-

13 years 4 weeks ago [\#128551](#128551) by [DomJam](/forum/user/12128-domjam "View DomJam's Profile")  Replied by *[DomJam](/forum/user/12128-domjam "View DomJam's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128551 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

If that was so, why can I let your Plugin published and just disable the 'Set currency' by selecting 'No' to prevent this error to appear???
This clearly indicates that the API is reached (the 2 others options in your Plugin are handled!).

So your advice is not relevant:
my server (OVH mutualisé ultra classique) is letting things happening.

Any other idea? You said that your plugin hasn't been modified since October 2012 while IPinfoDB mentions extensivly that they did change things in their API begining of 2013: *Please be informed that on 1-Jan-2013 onwards, our API will return the United Kingdom country code as "GB" instead of "UK", to fully comply with ISO-3166 standard.*

Weird enough, my website tries to handle GB currency...

So... Any other idea?

Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 4 weeks ago [\#128572](#128572) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Geolocation plugin returns 'API ERROR' on homepage](/forum/3-bug-report/862898-geolocation-plugin-returns-api-error-on-homepage#128572 "Hi team !  I have a serious issue :(  Not sure when exactly, but the Geolocation plug-in started at some point to return an error on the   www.benedictecaillat.com  homepage. I did nothing particular on this website for around 10 months.  First, it took me 10 (ten!) hours to find what was causing the issue. Time really lost for nothing... Anyway, now that I know that it comes from that plug-in (just disabling it solves the system message), I have tried many things: - disabling the Gzip compression (have read on another post that it had interfere with that plugin in the past) - checked my API key on   ipinfodb.com/  - updated my info and the server IP (in case) on   ipinfodb.com/  - remove some JQuery and other Google API calls stuff (you never know)... - changed the settings in the plugin - tried to use the 'Components checked' option in the plugin to limit the effect of the plugin...  Nothing works! Except if I disable the plugin. But if I do that, things like the currency is not correct anymore in the shop (it doesn't switch to € for France, instead of the default £)...  Luckily, you can get rid of the warning in one click, and most of the time, you need to empty your browser cache &amp; history once you saw it one time, if you want to see it again.  But I absolutely cannot let things like that anyway.  Help !! Many thanks in advance,  D.  &#42;&#42;&#42; INFO &#42;&#42;&#42; -- url of the page with the problem -- :   www.benedictecaillat.com  -- HikaShop version -- : 2.2.2 (and the ones before) -- Joomla version -- : 2.5.14 stable -- PHP version -- : x.x.x -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : System message cURL failed. Error: connect() timed out!API returned error: ")*

Hi,

If you can't connect to the ipinfodb API, if you can't just reach the server or communicate with him, you can't have any kind of GB/UK problem because you can't even talk with the server.

The error message you got is the description of your problem.
I am sorry but I have already give you the answer and regarding the error message, the problem is not in our side.

I have no problem to call the ipinfodb API
[ api.ipinfodb.com/v3/ip-country/?ip=192.187.109.60&amp;format=json](http://api.ipinfodb.com/v3/ip-country/?ip=192.187.109.60&format=json)

From:
- My place
- My OVH server
- The HikaShop server (hosted by OVH too)

You are asking for a solution and the only thing I can tell you is that the error message tell that it's a problem with CURL and the connection between your server and the "api.ipinfodb.com" server.

Since a long time, we have a patch in HikaShop Code:

if(!empty($location-&gt;countryCode) &amp;&amp; $location-&gt;countryCode =='UK'){ $location-&gt;countryCode='GB'; }

which translate UK to GB (because we use GB in HikaShop). So if the API returns GB instead of UK, it's not a problem at all.

There is no option handled by the plugin at all. The three features are using the same API and there is only one call to the API server to get the location (city and country). Using the country HikaShop use the right currency (associated to the country, in his database).

Because you have a problem for the connection with the API, nothing can work. That's a fact and we can't modify anything in HikaShop to make it work, because it's not relevant to HikaShop.

I am sorry but you have to accept that the answer that I gave you is the real answer.
The message that CURL return you is your problem, you have to trust this message and investigate in this direction.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjI4OTgtZ2VvbG9jYXRpb24tcGx1Z2luLXJldHVybnMtYXBpLWVycm9yLW9uLWhvbWVwYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.073 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
