Newspaper Theme – Exchange Element

Posted in: Newspaper
Post count: 27

Hello TagDiv Support,

We are unable to get the Exchange Element to work with the Theme. After getting the API Key and trying it several times, it seems not to be able to connect to their server.
I’m am wondering if this may be do to the fact that we are using CloudFlare and it’s firewall.
Is it possible to get an IP Address for that Element so that we can “allow” that IP address in CloudFlare.
It’s just a guess but I wonder if that may be the issue.

Thanks,
Mexico News Daily
mexiconewsdaily.com

Post count: 27744

Hi,

Please try to use this one f6ba83856ad33394048c30b4887f42f5

Thank you!

Post count: 27

Thank you for that answer… however, it still did not work. Is there an IP Address that it connects to? If so, if we can get that and try and “allow” that IP address. We are hoping that can fix it.

Thanks,
Tim 🙂

Post count: 27744

Hello,

Please go to this path td-composer/legacy/common/wp_booster/td_exchange.php and add this code -> https://i.imgur.com/4anEAqj.png
// try using the new API
if ( $api_response['success'] === false ) {
$api_url = 'https://api.apilayer.com/exchangerates_data/latest?apikey=' . $exchange_data['api_key'];
$json_api_response = td_remote_http::get_page($api_url, __CLASS__);
$api_response = @json_decode($json_api_response, true);
}

Hope this help you!

Thank you!

Post count: 27

Thank you again for responding, AnaMaria!

But, added the code to the place specified.
And then retried the Exchange Element but it still did not work.
I’m still wondering if we need to “unblock” the IP Address?
I’m not sure what else it might be?

Thanks for your time,
Tim

Post count: 27744

Hello Tim,

I don’t think it is related to IP Address
Please delete the above code, and do this change https://i.imgur.com/Fr8kZqu.png

Thank you!

Post count: 27

Thank you so much Anamaria!!
That worked!

Thanks again! Appreciate all your help!

Tim

Post count: 27744

Hello,

I’m glad the problem is resolved.

Have a great day!

Post count: 27

Hello Anamaria,

Hope you are well 🙂
We are having another issue with the Exchange Element 🙁
It shows up on the page but the values are not changing.
It has the same api_url that we had changed before…. but the exchange rates aren’t changing.

Appreciate any help you can give,

Tim 🙂

Post count: 27744

Hello,

Please check if you don’t have an object cache.

Thank you!

Post count: 27

Hi Anamaria,

This doesn’t seem to be a caching issue. We cleared all cache(s) and rechecked. We tried in Private/Incognito mode. We tried with “/?nocache=1” on the page…. But, it seems to not change. And it had been working fine for some time with the same caching system in place. I’m not sure if we should try setting up another key? Although I tried two keys and neither worked. It’s odd because it shows up fine… just with the same numbers all the time…?? Hmm..

Post count: 27744

Hello,

We can take a look at this and investigate why it is not working for you. Contact us via email at contact@tagdiv.com and provide the following:
– admin URL and credentials
– cpanel URL and credentials
– a link to this topic in order to identify you

Thank you!

Post count: 27

Hello Annamaria,

I just looked at the API Layer site…and it looks like we reached our limit of Requests per Month? We reached 100.
We must need to buy an upgrade for it?

Thanks,
Tim : )

Post count: 27744

Hello Tim,

Yes, if you reached out the limit for it, you need to buy it.
We have implemented the option to work with this type of API, but the API has its rules.

Thank you!

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newspaper’ is closed to new topics and replies.