Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Scheduler
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2013 at 19:45 UTC
Updated:
1 Apr 2014 at 10:21 UTC
Jump to comment: Most recent, Most recent file
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 commentedyes, the database table 'rules_scheduler' have a "data" column instead of a "state" column.
Comment #3
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 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 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 commentedI cleared old records from DB and now Rules Sheldure works fine.
Thank you for patch!!!
Comment #7
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 commented#4 work for me
Comment #9
fagook, committed #4.