Hi

On a fresh install of Elysia Cron, I go to settings and set default schedule rule to 'Every 6 hours'. Then I save and the list of single jobs shows Default (Every 6 hours). Great.

Now if I try to save configuration again, I get 'Invalid rule: Every 6 hours' repeated for every rule and settings cannot be saved...?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gotheric’s picture

A real strange error. Try to reset settings to factory values or to unistall (completely) the module and reinstall it.

JimV’s picture

I get the same error if enter anything into 'Default schedule rule'. Tried complete uninstall/reinstall. Workaround is to never touch that field. 'Every hour' seems to be the default rule even though the field is blank.

sanoopuio’s picture

Issue summary: View changes
FileSize
505.24 KB

Even i am getting the same error and not able to reset that rule.

Please see the attached image

sanoopuio’s picture

fixed it through database alteration

MyriamB’s picture

Same issue. disabling and uninstall the module, then re-enabling it is the only way to change configs.

kala4ek’s picture

Version: 7.x-2.1 » 7.x-2.x-dev

Need to recheck it.

andrey.troeglazov’s picture

Assigned: Unassigned » andrey.troeglazov
andrey.troeglazov’s picture

Hello, the problem was that schedule rules accept only cron-tab format, there is regexp for checking it in elysia_cron_settings_form_validate.
But for default schedule rule there is no such validation that's why the format like "every 6 hours" can be accepted and further we get an error.
I have attached a patch to avoid such problem.
Kind regards.

andrey.troeglazov’s picture

Assigned: andrey.troeglazov » Unassigned
Status: Active » Needs review

kala4ek’s picture

Status: Needs review » Fixed

Thanks, committed to latest dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.