Forums / General Questions / Cron Jobs Help Need

Cron Jobs Help Need

Results 1 to 6 of 6
28 Jun 2016, 01:34
#1
littleangell52 avatar

littleangell52

Zen Follower

Join Date:
Jan 2016
Posts:
102
Plugin Contributions:
0

Cron Jobs Help Need

How do I do a Cron Job as that is all i am getting. This is what I put php /home1/littlfk0/public_html/dreamingofpspco/admin/includes/extra_datafiles/currencyupdate_openexchangerates.php and this is what the emai says. I run admin the following found below

Status: 404 Not Found
Content-type: text/html

No input file specified.

But would this work
/usr/bin/GET http://www.dreamingofpsp.co.uk/admin/includes/extra_datafiles/currencyupdate_openexchangerates.php

I want the cron job to run openexchangerates every half an hour.

Any help would be appreciated
28 Jun 2016, 05:30
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Posts:
6,263
Plugin Contributions:
3

Re: Cron Jobs Help Need

LittleAngell52:


Any help would be appreciated


I'm not recognizing the filename "currencyupdate_openexchangerates.php" - or anything even vaguely similar to that. What version of Zencart, and where did you find this file?

With a couple of different installs that I have, I'm finding

/admin/currency_update.php
and a
/admin/currency_cron.php

Nothing in the includes/extra_datafiles/ though along those lines though.

According to comments in the currency_cron.php file, this file must reside in the renamed /admin/ folder else it won't work.

According to the contents of the currency_update.php file you need to edit this and set the 'define' for the PATH_TO_STORE_ROOT . This file also resides in the renamed admin directory.

It is unclear from you post as to whether the '404' (not found) error is because the xxxxxxxx.php file itself isn't being found, or whether it is this file that is reporting that another file couldn't be found.

How and where are you entering these cron jobs. I'm assuming via cPanel, but I mave a pretty good track record or intentionally making wrong assumptions in order to elicit more information :).

Would love to help more - but I'm sure that I have just demonstrated the importance of having more information.

Cheers
RodG
28 Jun 2016, 08:06
#3
littleangell52 avatar

littleangell52

Zen Follower

Join Date:
Jan 2016
Posts:
102
Plugin Contributions:
0

Re: Cron Jobs Help Need

RodG:

I'm not recognizing the filename "currencyupdate_openexchangerates.php" - or anything even vaguely similar to that. What version of Zencart, and where did you find this file?

With a couple of different installs that I have, I'm finding

/admin/currency_update.php
and a
/admin/currency_cron.php

Nothing in the includes/extra_datafiles/ though along those lines though.

According to comments in the currency_cron.php file, this file must reside in the renamed /admin/ folder else it won't work.

According to the contents of the currency_update.php file you need to edit this and set the 'define' for the PATH_TO_STORE_ROOT . This file also resides in the renamed admin directory.

It is unclear from you post as to whether the '404' (not found) error is because the xxxxxxxx.php file itself isn't being found, or whether it is this file that is reporting that another file couldn't be found.

How and where are you entering these cron jobs. I'm assuming via cPanel, but I mave a pretty good track record or intentionally making wrong assumptions in order to elicit more information :).

Would love to help more - but I'm sure that I have just demonstrated the importance of having more information.

Cheers
RodG

I shoulp have said that the file named curreyupdate_openexchangerates.php is a plugin file. I have tried Currency Update using the same formate as in my previous post and I get the same results. I had my server upgraded to a deicated server last friday and since that upgrade I have had nothing but problem with my store. I spent 7months already uploading my good and still got a long way to go.
28 Jun 2016, 08:23
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Cron Jobs Help Need

LittleAngell52:

I shoulp have said that the file named curreyupdate_openexchangerates.php is a plugin file. I have tried Currency Update using the same formate as in my previous post and I get the same results. I had my server upgraded to a deicated server last friday and since that upgrade I have had nothing but problem with my store. I spent 7months already uploading my good and still got a long way to go.


Which version of Zen Cart are you using?

As an aside, posting everything in bold letters is frowned upon on this forum.
28 Jun 2016, 09:41
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Posts:
6,263
Plugin Contributions:
3

Re: Cron Jobs Help Need

LittleAngell52:

I shoulp have said that the file named curreyupdate_openexchangerates.php is a plugin file.



Yes, that would have been some help - even better would have been a link to where you found this plugin so that I didn't have to go searching for it. (no good giving it now - I already found it via Google)

This module isn't designed to be run as a CRON job, so that's what your problem is.

LittleAngell52:


I have tried Currency Update using the same formate as in my previous post


Too vague. But if you are really are referring to currency_update.php then as per my prev post, this needs to be configured, and it doesn't reside in the same place as the "curreyupdate_openexchangerates.php" <sic> file.

I have no idea what you mean by 'same formate'.

You didn't answer the question as to how or where you are setting up the cronjob.

LittleAngell52:


I had my server upgraded to a deicated server last friday and since that upgrade I have had nothing but problem with my store.


Too unspecific - this may or may not have something to do with the cron/currency issue. Who knows <shrug>

LittleAngell52:


I spent 7months already uploading my good and still got a long way to go.


We are here to help - really we are - but you really do need to give us something concrete to work with. - and preferably, one problem at a time.

The best I can determine at the moment is that you are trying to run a cronjob on a file that isn't designed to be run this way.

I wish I could help more, really I do - I didn't search for, download and read the instructions for this module, or inspect the contents and locations of the other files discussed (so far) to give you non answers - I could have given the same almost lack of information by guesswork (and saved 15-20minutes of my time).

Help us and we can help you. It is as simple as that,

Cheers
RodG
29 Jun 2016, 09:38
#6
littleangell52 avatar

littleangell52

Zen Follower

Join Date:
Jan 2016
Posts:
102
Plugin Contributions:
0

Re: Cron Jobs Help Need

I have found out that my hosting provider is having issues and I personally think its down to that as I had it all working till i got them to add a SSL Certficate last Friday. I am in the process of moving my site over to a new hosting provider. I can't even do a backup of my site.