*

maxmaxmax

  • *
  • 9 posts
Exchange Rate MultiCurrency Plugin does not refresh rates
« on: March 21, 2021, 08:13:19 AM »
Hello,
I bought and installed the Exchange Rate MultiCurrency Plugin.
The rate are refreshed every time I click the refresh button in the admin section of the plug in.
But it does not refresh automatically daily as it should with the cron_job of Osclass.
How can I fix it?

*

MB Themes

Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #1 on: March 21, 2021, 08:54:15 PM »
@maxmaxmax
Well, simplest fix should be to setup cronjob properly so it is executed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

maxmaxmax

  • *
  • 9 posts
Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #2 on: March 24, 2021, 06:02:34 AM »
Hello,
thank you for your answer.
Apparently the setting of the Osclass cronjob are right.
Or, should I add it in the cron section of cPanel? In that case, what should I write?
Or there is some cron job setting in Osclass?
This (attached) is the only one I know.

*

MB Themes

Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #3 on: March 24, 2021, 08:29:42 AM »
@maxmaxmax
This cron settings is just for testing purpose, setup real cron.
https://docs.osclasspoint.com/cron-setup
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

maxmaxmax

  • *
  • 9 posts
Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #4 on: March 27, 2021, 10:39:49 AM »
Hello, I read the documentation but I really did not understand what I have to do.
Shouldn't be already working automatically once installed?
Is there a step by step guide to let the plugin work?
I mean, I installed and it should work.
I check and it does execute the cron jobs.
I am not a programmer, what I have to do to let it work?
Thank you.
« Last Edit: March 27, 2021, 10:45:17 AM by maxmaxmax »

*

MB Themes

Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #5 on: March 27, 2021, 08:09:52 PM »
Setting up cron has nothing to do with plugin, it is essential part of osclass that execute scheduled scripts.
Discuss setting up cron with your hosting provider.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

maxmaxmax

  • *
  • 9 posts
Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #6 on: March 28, 2021, 01:44:18 AM »
Hello,
As I wrote, I checked and the cron are setting and execute regularly (see attachment) but the currency are not update.
Indeed Osclass is working correctly.

*

MB Themes

Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #7 on: March 28, 2021, 10:38:12 AM »
Ok, then make sure your rate api and key is setup, it is refreshing properly and no errors are thrown in error log.
Plugin use daily cron.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

maxmaxmax

  • *
  • 9 posts
Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #8 on: March 30, 2021, 05:39:22 AM »
Hello,
when I manually refresh I don't have any errors and the rates change properly.
Just to "manually" launch the daily cron I also add this cron job in cPanel:

Code: [Select]
0 0 * * * /usr/local/bin/php /home/my_username/public_html/index.php -p cron -t daily
is it correct?

*

MB Themes

Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #9 on: March 30, 2021, 08:51:28 AM »
It looks to be correct.
I've just checked plugin once again, and it properly refresh rates on demo using cron.

This can be simply checked by adding this line in functions.php of your theme and then refreshing page (once, twice, as many times as you need):
Code: [Select]
osc_run_hook('cron_daily');
If you use this function, you should see also possible errors there.

You can check it out on demo:
https://plugins2.abprofitrade.eu/oc-admin/index.php?page=plugins&action=renderplugin&file=exchange_rate/admin/configure.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

maxmaxmax

  • *
  • 9 posts
Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #10 on: March 30, 2021, 12:42:23 PM »
Hello,
yes, with that code it does work correctly, thank you.
Now I am thinking something that I should have thought before:
is it possible that the automatic updating currency features does not work in maintenance mode?
Because with this code it works in maintenance mode.
Let me know and thank you for your code.

*

MB Themes

Re: Exchange Rate MultiCurrency Plugin does not refresh rates
« Reply #11 on: March 30, 2021, 04:19:50 PM »
@maxmaxmax
No idea.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots