News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

CronJob dont work fine

Started by Mister.X, 20.08.2020 20:54:55

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mister.X

Hello,

on version 3.x I was able to use a cronjob to activate the uploaded file for downloads
After updating to version 3.9 my cronJob dont work.

Now i only can activate uploaded files by using the Joomla administration / backend / components / JDownloads and click on check download area.
How can i using the feature activating download-able files by cronjobs

thank you for helping
  •  

ColinM

Hi
I will check further as Cron jobs shouls still work.
Can you check that your Joomla! secret key is the same.

Also it would help if you could advise which Cron service youare using
Best wishesColin
Colin M
  •  

Mister.X

#2
Hi, thank you for helping,

i look at my system... there was a new option... run test first, i have disabled now, but the cronjob dont work fine as the last time.
i have to activate it manually via cronjob is not possible at the moment
the same behaviour as before :-(

where should i look for the joomla secret, you want to know?

the cronjob is the service of the webhoster (all-inkl.com)

Edit:
the secret was found in the configuration.php and ist the same to the secret in the cronJob!

the URL is https://DOMAIN.TLD/administrator/components/com_jdownloads/helpers/scan.php?key=SECRETOFCONFIGURATION
it this right?
  •  

Mister.X

hello,

i got it  ;D

you implemented a service, that display the result of the check and after that... i can click on the button the changes should be done.

now i extended the cron-job-url with "&mode=0&test=0" and it works fine.

https://DOMAIN.TLD/administrator/components/com_jdownloads/helpers/scan.php?key=SECRETOFCONFIGURATION&mode=0&test=0

ready  :P ::)
  •  

ColinM

Colin M
  •  

Arno

#5
Hi,
it seems that I have forget the cron job.´in this case.  :-\

Maybe I should change it that the testrun is not active as default when no value is given?
Then should also the old cron jobs be still compatible.

A note about the mode variable. You can with this option select which job shall be done.

mode == 0  : do all (default setting)
mode == 1  : search only new Categories
mode == 2  : search only new Files
mode == 3  : check only existence of Categories
mode == 4  : check only existence of Files


Maybe important for the documentation Colin?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

@Arno
You wroteM
Quoteaybe I should change it that the testrun is not active as default when no value is in given?
Then should also the old cron jobs be still compatible.
I have ammended the documentaion to assume that both mode and test are 0
Colin
Colin M
  •  

Arno

Okay Colin.
So I have it changed in this direction in 3.9.5.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •