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.

Files: 
CommentFileSizeAuthor
#4 d7_rules_scheduler_state.patch637 bytesfago
PASSED: [[SimpleTest]]: [MySQL] 351 pass(es).
[ View ]

Comments

Status:Active» Postponed (maintainer needs more info)

Could 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.

<?php
/**
* Rename rules_scheduler.state into rules_scheduler.data.
*/
function rules_scheduler_update_7204() {
 
db_change_field('rules_scheduler', 'state', 'data', array(
   
'type' => 'text',
   
'not null' => FALSE,
   
'serialize' => TRUE,
   
'description' => 'The whole, serialized evaluation data.',
  ));
}
?>

yes, the database table 'rules_scheduler' have a "data" column instead of a "state" column.

Full 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).

Version:7.x-2.5» 7.x-2.x-dev
Priority:Critical» Major
Status:Postponed (maintainer needs more info)» Needs review
StatusFileSize
new637 bytes
PASSED: [[SimpleTest]]: [MySQL] 351 pass(es).
[ View ]

oh, 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?

Now
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).

Issue summary:View changes

Notice: Undefined index: data in the function RulesSchedulerDefaultTaskHandler-> runTask () (line 30 in file ..../sites/all/modules/rules/rules_scheduler/includes/rules_scheduler.handler.inc).

I cleared old records from DB and now Rules Sheldure works fine.
Thank you for patch!!!

Same 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:

Notice: Undefined index: data in RulesSchedulerDefaultTaskHandler->runTask() (line 30 of /www/ibbr/sites/all/modules/rules/rules_scheduler/includes/rules_scheduler.handler.inc).

And this error in my PHP error logs:

PHP Fatal error: Call to a member function restoreBlocks() on a non-object in /www/ibbr/sites/all/modules/rules/rules_scheduler/includes/rules_scheduler.handler.inc on line 31, referer: https://www.ibbr.umd.edu/admin/reports/status

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!

Notice: Array to string conversion in view->get_url() (line 1639 of /www/ibbr/sites/all/modules/views/includes/view.inc).
Recoverable fatal error: Object of class RulesState could not be converted to string in view->get_url() (line 1639 of /www/ibbr/sites/all/modules/views/includes/view.inc).

#4 work for me

Issue summary:View changes
Status:Needs review» Fixed

ok, committed #4.

Status:Fixed» Closed (fixed)

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