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.
There are any schedule tasks.
After launching cron, in logs:
Undefined index: data в функции RulesSchedulerDefaultTaskHandler->runTask().
Schedule Tasks are not executed!!!
Also if cron is runned manually, white screen appears.
Comment | File | Size | Author |
---|---|---|---|
#4 | d7_rules_scheduler_state.patch | 637 bytes | fago |
Comments
Comment #1
fagoCould you check that rules_scheduler_update_7204() ran through on your site? I.e., the database table
'rules_scheduler' should have a "data" column instead of a "state" column.
Comment #2
maked1sky CreditAttribution: maked1sky commentedyes, the database table 'rules_scheduler' have a "data" column instead of a "state" column.
Comment #3
maked1sky CreditAttribution: maked1sky commentedFull ERROR text:
Notice: Undefined index: data in fuction RulesSchedulerDefaultTaskHandler->runTask() (string 30 in file ....sites/all/modules/rules/rules_scheduler/includes/rules_scheduler.handler.inc).
Comment #4
fagooh, I see - the problem is probably that there were some items in the queue which are not covered by the updated process. Could you test whether the following patch works for you?
Comment #5
maked1sky CreditAttribution: maked1sky commentedNow
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'name': INSERT INTO {users} (uid, created, data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 1393 [:db_insert_placeholder_1] => 1381761679 [:db_insert_placeholder_2] => a:2:{s:7:"contact";i:0;s:17:"mimemail_textonly";i:0;} ) in function drupal_write_record() (string 7106 in file ..../includes/common.inc).
Comment #5.0
maked1sky CreditAttribution: maked1sky commentedNotice: Undefined index: data in the function RulesSchedulerDefaultTaskHandler-> runTask () (line 30 in file ..../sites/all/modules/rules/rules_scheduler/includes/rules_scheduler.handler.inc).
Comment #6
maked1sky CreditAttribution: maked1sky commentedI cleared old records from DB and now Rules Sheldure works fine.
Thank you for patch!!!
Comment #7
presleyd CreditAttribution: presleyd commentedSame issue (I think)
I have a bunch of scheduled jobs in the queue and noticed that when I ran cron manually I got the following notice:
And this error in my PHP error logs:
I went and deleted everything out of my scheduled queue and re-queued a few items and got the same errors.
With the patch in#4 I get different (and exciting) errors!
Comment #8
protools CreditAttribution: protools commented#4 work for me
Comment #9
fagook, committed #4.