No key from Web Cron Topic is solved

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
Donethat
Joomla! Explorer
Joomla! Explorer
Posts: 376
Joined: Fri May 30, 2008 12:36 pm
Location: Redhill
Contact:

No key from Web Cron

Post by Donethat » Tue May 24, 2022 10:28 am

Trying to set up a url based Cron Job. In scheduled tasks, Options I have set the Web Cron to 'Enabled'. According to the note when I save a key will be generated.

I have done this now a few times and no key is appearing. What am I missing?
Perfection is a state of mind, not reality
www.cavespider.co.uk

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 14701
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: No key from Web Cron

Post by toivo » Tue May 24, 2022 10:57 am

This issue was reported last week as [4] scheduler web cron not working #37806. The Pull Request (PR) [#37868] - [4.1] Fix generate web cron key fixes it and is now Ready To Commit (RTC). Will hopefully make it to Joomla 4.1.4, scheduled to be released later today.
Toivo Talikka, Global Moderator

Donethat
Joomla! Explorer
Joomla! Explorer
Posts: 376
Joined: Fri May 30, 2008 12:36 pm
Location: Redhill
Contact:

Re: No key from Web Cron

Post by Donethat » Tue May 24, 2022 11:05 am

Brilliant, I look forward to it.

Thank you for the rapid response
Perfection is a state of mind, not reality
www.cavespider.co.uk

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 14701
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: No key from Web Cron

Post by toivo » Tue May 24, 2022 12:05 pm

Cheers, we'll mark this topic as solved then.
Toivo Talikka, Global Moderator

Donethat
Joomla! Explorer
Joomla! Explorer
Posts: 376
Joined: Fri May 30, 2008 12:36 pm
Location: Redhill
Contact:

Re: No key from Web Cron

Post by Donethat » Thu May 26, 2022 4:19 pm

Right I have now updated to Joomla 4.1.4 and I have enabled the Web Cron and still no key. Where would I see this key if and when it is generated?
Perfection is a state of mind, not reality
www.cavespider.co.uk

User avatar
ceford
Joomla! Guru
Joomla! Guru
Posts: 811
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: No key from Web Cron

Post by ceford » Thu May 26, 2022 6:31 pm

There is an article about this feature in the Community Magazine:

https://magazine.joomla.org/all-issues/ ... -scheduler

It says:

Code: Select all

In the Task Scheduler’s options, you can choose how the tasks get triggered. Do you want them to run as specified in the tasks settings? Or, maybe it’s a task that needs to be run when someone visits a specific webpage. You can even set up a Web Cron URL with the Task ID that you want to run set as a query string (&ID=1). This means that you can run the task in question via an external trigger from a different website or app.
I have looked through the code and database for any sign of a stored key - it is just a random password hash - and have not found one. Nor is there any sign of where to enter a url. Is this feature actually finished?
I confirm there is no sign of a key in 4.1.4.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 14701
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: No key from Web Cron

Post by toivo » Thu May 26, 2022 10:00 pm

For some reason the Pull Request (PR) [#37868] - [4.1] Fix generate web cron key did not make it to Joomla 4.1.4 - it is still Ready To Commit (RTC), which means it will be included in the next version.

If you would like to apply the patch, edit the file plugins/system/schedulerunner/schedulerunner.php.

Replace lines 377 and 378:

Code: Select all

		if ($context !== 'com_config.component'
			|| ($table->name ?? '') !== 'COM_SCHEDULER')
with

Code: Select all

		if ($context !== 'com_config.component' || $table->name !== 'com_scheduler')
Toivo Talikka, Global Moderator

User avatar
ceford
Joomla! Guru
Joomla! Guru
Posts: 811
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: No key from Web Cron

Post by ceford » Fri May 27, 2022 4:26 am

Patch works fine and it is so much clearer when the link field is present with its associated description. I updated the Help screen to say as much.

Donethat
Joomla! Explorer
Joomla! Explorer
Posts: 376
Joined: Fri May 30, 2008 12:36 pm
Location: Redhill
Contact:

Re: No key from Web Cron

Post by Donethat » Fri May 27, 2022 8:27 am

Thanks for the excellent response. I will apply the suggested patch and let you know.
Perfection is a state of mind, not reality
www.cavespider.co.uk


Post Reply

Return to “Administration Joomla! 4.x”