dashed-slug.net › Forums › General discussion › Exchange rates do not show via wiget or shortcode.
Tagged: exchange rate providers, exchange rates, fixer.io, tor
- This topic has 3 replies, 2 voices, and was last updated 4 years ago by
alexg.
-
AuthorPosts
-
August 19, 2020 at 3:04 pm #9178
Anonymous
InactiveNot sure if anyone else has this issue in the community however im trying to debug this issue and if anyone else has the same problem any info would be appreciated.
The following attachments shows the exchange rates wiget not properly working, the coin icons or the fiat value.
The 2nd attachment shows the shortcode used, however in this case the cryptocurrency icons shows as expected yet the value just shows a line –
I have deactivated all plugins, changed my php-fpm from 7.4.9 back to php-fpm 7.4.5
Then tried just php version 7.4.5 however the issue remains. I’m pretty confident it’s not a php version conflict.
I made sure the default fiat was set.
I’m at a loss where to look next.
I believe it stopped working after the last wordpress update since issues with jQuery was reported.Attachments:
You must be logged in to view attached files.August 22, 2020 at 12:22 pm #9185Anonymous
InactiveUpon further inspection i noticed this error.
PHP curl returned error while pulling rates: Failed connect to 127.0.0.1:9050; Connection refusedAugust 22, 2020 at 3:26 pm #9186Anonymous
InactiveSolved the issue.
Having more time to troubleshoot the issue i noticed i also had a connection refused using port 9150 when i changed ports. so i guess this may be an issue with my nginx because i proxy apache through it so since nginx is used as a reverse proxy i unticked *Use tor to pull exchange rates*
After doing so the error mentioned in the post above this is gone.
However the same problem with exchange rates not showing in the front end was still there.
From here i had to take a look at the Exchange rates providers 1 by 1 and make sure api was correct for the one’s that needed it.
Turns out the only provider’s that work for me are
Coingecko
Coincap
Cryptocompare
(I don’t use fixer or neither have i tested it during this troubleshoot)Using any of those 3 provider’s the rates now show as expected on the front end.
Not sure if anyone else had this issue however if anyone does hopes this helps.
August 31, 2020 at 9:06 am #9204alexg
KeymasterHello,
Glad that you resolved the issue.
The error regarding port 9150 means that the plugin cannot connect to your local tor service. Are you running tor on your web server? If not, then it won’t work.
Using the three exchange rate providers that you mentioned should be more than enough. In general you should be using the least amount of providers that covers all of your coins. You only need fixer.io if you need the exchange rates against fiat currencies.
with regards
-
AuthorPosts
- You must be logged in to reply to this topic.