Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The schedule settings form is currently blank due to SchedulerSettingsForm::buildForm() not returning the form array.
Comment | File | Size | Author |
---|---|---|---|
#5 | scheduler_settings_form-2923922-5.patch | 2.87 KB | reflie |
|
Comments
Comment #2
rwohlebFrom this:
To this:
Comment #3
gge CreditAttribution: gge commented@rwohleb
I've found
parent::buildForm($form, $form_state);
in ultimateultimate_cron/src/FormSchedulerSettingsForm.php
. However after changing that line toreturn parent::buildForm($form, $form_state);
the scheduler settings do appear but the settings but can't be saved. The console shows this error:An invalid form control with name='simple[rule]' is not focusable.
How can you save the settings?
Thanks
Comment #4
reflie CreditAttribution: reflie as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedComment #5
reflie CreditAttribution: reflie as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedHere is a patch. It fixes the problem with blank scheduler settings from, a problem with saving values in the config and loading them from it. Also I commented "element_validate" function (like in Crontab.php file) as it isn't ready yet and produces warnings.
Comment #6
BerdirThanks but all those settings are currently pretty much non-functional and ignored. See #2692781: Make global setting ui dynamic and use it, doesn't really make sense to fix some part about it when they don't do anything.
Comment #7
reflie CreditAttribution: reflie as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedOh, I didn't notice this issue.
Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedFYI its still blank in latest release.
Comment #9
dmegatool CreditAttribution: dmegatool commentedYeah just installed for the first time and the form is still blank. Thx @reflie for the patch in comment #5
Comment #10
lhridley CreditAttribution: lhridley as a volunteer and at Interpersonal Frequency commentedMarking Needs Work. Patch failed to apply.
Comment #11
brooke_heaton CreditAttribution: brooke_heaton commentedPatch #5 is working for me on 8.x-2.0-alpha5. Applies fine.
Comment #12
brooke_heaton CreditAttribution: brooke_heaton commentedComment #13
DamienMcKennaWas this fixed in another issue? I'm able to use the latest alpha release just fine.