Forums / All Other Contributions/Addons / Currency Update (Automatic)

Currency Update (Automatic)

Views: 82,431

Results 101 to 120 of 298
21 Feb 2009, 12:36 AM
#101
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Currency Update (Automatic)

Execute the file manually (i.e. by navigating to it in a browser) and see if that updates the currencies. That will show whether it is the setup of the script itself, or the CRON job that is at fault.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

21 Feb 2009, 4:19 AM
#102
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Currency Update (Automatic)

kuroi:

Execute the file manually (i.e. by navigating to it in a browser) and see if that updates the currencies. That will show whether it is the setup of the script itself, or the CRON job that is at fault.

:blush::blush::blush:

Warning: require_once(PATH_TO_STORE_ROOTincludes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/b/i/g/bigstar/html/bigstarca/store/currency_update.php on line 20

Fatal error: require_once() [function.require]: Failed opening required 'PATH_TO_STORE_ROOTincludes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/b/i/g/bigstar/html/bigstarca/store/currency_update.php on line 20

21 Feb 2009, 9:36 AM
#103
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Currency Update (Automatic)

That indicates that either the file you're using is corrupt, or you have removed the definition of PATH_TO_STORE_ROOT.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

28 Feb 2009, 9:58 PM
#104
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Currency Update (Automatic)

kuroi:

That indicates that either the file you're using is corrupt, or you have removed the definition of PATH_TO_STORE_ROOT.

Can you give me an example of what my "path to store root" should be?

The currency_update.php file is located in http://www.mydomain.com/store/

1 Mar 2009, 3:29 AM
#105
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Currency Update (Automatic)

Thank you for pointing me in the right direction. I figured out where I forgot to put the store root in the PHP file. It should work now.

3 Mar 2009, 3:21 AM
#106
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Currency Update (Automatic)

What do I CHMOD currency_update.php file to??

21 Mar 2009, 7:55 AM
#107
paulasinner avatar

paulasinner

New Zenner

Join Date:
Mar 2009
Posts:
11
Plugin Contributions:
0

Re: Currency Update (Automatic)

Can someone teach me how do i configure my cron and my file " currency_update" plz?

21 Mar 2009, 8:36 AM
#108
whitt avatar

whitt

New Zenner

Join Date:
Aug 2008
Posts:
29
Plugin Contributions:
0

Re: Currency Update (Automatic)

did you read my previous posts on how I did it in my server control panel?

21 Mar 2009, 5:32 PM
#109
paulasinner avatar

paulasinner

New Zenner

Join Date:
Mar 2009
Posts:
11
Plugin Contributions:
0

Re: Currency Update (Automatic)

yes, i'm receveiving thw following errors in my email:

<br /> <b>Warning</b>: file() [<a href='function.file'>function.file</a>]: URL file-access is disabled in the server configuration in <b>/home/(my username)/public_html/egt/zencart/currency_update.php</b> on line <b>37</b><br /> <br /> <b>Warning</b>: file(<http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml>) [<a href='function.file'>function.file</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/(my username)/public_html/egt/zencart/currency_update.php</b> on line <b>37</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/(my username)/public_html/egt/zencart/currency_update.php</b> on line <b>40</b><br />
21 Mar 2009, 5:40 PM
#110
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Currency Update (Automatic)

PaulaSinner:

i'm receveiving thw following errors in my email:Your errors suggest that your web host is blocking the php file() function, which this mod uses to read in the currency data.

You would need to either get your web host to unblock that function, or try the curled version of thsi mod instead (see post #85 above).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

21 Mar 2009, 6:00 PM
#111
paulasinner avatar

paulasinner

New Zenner

Join Date:
Mar 2009
Posts:
11
Plugin Contributions:
0

Re: Currency Update (Automatic)

Well, i contacted them.. and they said the php files are permitted and they gave me the command to run in the cron

"php /home/hostname/public_html/filename"

I already did it.. and i did not have success

21 Mar 2009, 6:14 PM
#112
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Currency Update (Automatic)

PaulaSinner:

file-access is disabled in the server configurationThat's the error message coming from the PHP installation on your web host's server, not Zen Cart and not this mod.

However, I think that your webhost has misunderstoof the issue and thinks you're asking about file permissions rather than the blocking of the PHP file() function. This function is now blocked by default in some installations of PHP5. Your web hosts may not even be aware that they're doing it.

If their technical knowledge is such that they can't sort it out, then you will need to look at the curled version of the add-in instead.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

21 Mar 2009, 7:48 PM
#113
paulasinner avatar

paulasinner

New Zenner

Join Date:
Mar 2009
Posts:
11
Plugin Contributions:
0

Re: Currency Update (Automatic)

Hey guys, just a last help :P

What messenge would i receive if the script runs ok?

ty

21 Mar 2009, 8:02 PM
#114
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Currency Update (Automatic)

You won't receive a message. It's intended to run silently in the background updating currencies and once working, no news is good news.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

19 May 2009, 3:19 PM
#115
vortex12 avatar

vortex12

New Zenner

Join Date:
Dec 2008
Location:
Australia
Posts:
56
Plugin Contributions:
0

Re: Currency Update (Automatic)

:lamo:
Hi everyone Awesome scripts, i am with Bravenet and they wont run cron jobs service but they said something about triggering the script to make it work? I found http://www.cronjobs.org but i cant really make sense of it all.
If anyone could help me with my major delema it would be heaps appreciated
:frusty:

Vs

25 May 2009, 5:48 PM
#116
vortex12 avatar

vortex12

New Zenner

Join Date:
Dec 2008
Location:
Australia
Posts:
56
Plugin Contributions:
0

Re: Currency Update (Automatic)

Hi Again, i am having trouble as im not to educated in php code. getting the Define line17 set out right
I have this /var/www/html/shop-adons/automated_currency_update_v3_1/currency_update.php

If anyone could help i have read the forum over a few times now.
Help would be awesome thaks in advance :mellow:

Vs

26 May 2009, 1:38 PM
#117
vortex12 avatar

vortex12

New Zenner

Join Date:
Dec 2008
Location:
Australia
Posts:
56
Plugin Contributions:
0

Re: Currency Update (Automatic)

I hope this post is still running, It would be nice if someone spare a moment :blush:
this is from my host
Do you support crontab for scheduled tasks?
No, we don't currently support cron or any other type of task scheduling. We have had members ask for this, and we will try to implement the support in a future hosting version.
As a possible alternative for in the meantime, you could use a crontab service from a different company to 'trigger' your script hosted on Bravenet at predefined intervals.

I would pay to have this done If anyone?
Please help
:bigups:

Vs

2 Jun 2009, 7:46 AM
#118
shoesbuyonline avatar

shoesbuyonline

New Zenner

Join Date:
May 2009
Posts:
78
Plugin Contributions:
0

Re: Currency Update (Automatic)

Nice add-on! I used this on my local testing PC, it works fine and do update the exchange rate. But I found the value is much different from the result I got using the zen-cart built-in function. Who knows Why?:frusty:

2 Jun 2009, 8:11 AM
#119
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Currency Update (Automatic)

Vortex12:

I hope this post is still running, It would be nice if someone spare a moment :blush:
this is from my host
Do you support crontab for scheduled tasks?
No, we don't currently support cron or any other type of task scheduling. We have had members ask for this, and we will try to implement the support in a future hosting version.
As a possible alternative for in the meantime, you could use a crontab service from a different company to 'trigger' your script hosted on Bravenet at predefined intervals.

I would pay to have this done If anyone?
Please help
:bigups:Rather than paying somebody to do this for you (though it's really quite straightforward - just put the script in your site's root directory and ask the service to make a call to it once a day), I'd recommend spending your money on a host with a full range of services. You shouldn't need to pay somebody else to set up another paid service just because your web host doesn't offer a fairly basic facility.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jun 2009, 8:20 AM
#120
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Currency Update (Automatic)

ShoesBuyOnline:

I found the value is much different from the result I got using the zen-cart built-in function. Who knows Why?The answer can be found earlier in this thread. The built in service was written prior to the service providers changing their terms of business to forbid the screen-scrapping of real-time data that was common at the time. Nowadays you have to buy the service if you want to use it this way.

As a result the current version of the mod uses a different source (official European Central Bank rates, updated once a day). Zen Cart 2.0 will also use this legitimate source.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)