jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Topic started by: Mister.X on 20.08.2020 20:54:55

Title: CronJob dont work fine
Post by: Mister.X on 20.08.2020 20:54:55
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
Title: Re: CronJob dont work fine
Post by: ColinM on 21.08.2020 11:40:33
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
Title: Re: CronJob dont work fine
Post by: Mister.X on 21.08.2020 21:38:35
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?
Title: Re: CronJob dont work fine
Post by: Mister.X on 30.08.2020 23:57:16
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 ::)
Title: Re: CronJob dont work fine
Post by: ColinM on 31.08.2020 11:14:33
Hi
Well done  - have been tied up with the database 'challenge'.
Will ammend the documentationhttps://www.jdownloads.net/documentation-for-v3-9/faq-v3-9/automatic-publication-at-scheduled-times-cron-job

Thanks
Colin
Title: Re: CronJob dont work fine
Post by: Arno on 31.08.2020 12:39:01
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?
Title: Re: CronJob dont work fine
Post by: ColinM on 31.08.2020 18:16:36
@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
Title: Re: CronJob dont work fine
Post by: Arno on 01.09.2020 10:17:28
Okay Colin.
So I have it changed in this direction in 3.9.5.