Closed (duplicate)
Project:
Heartbeat
Version:
6.x-4.12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2013 at 18:32 UTC
Updated:
28 Jun 2017 at 11:10 UTC
Jump to comment: Most recent
We were getting errors in our drupal commons site on cron run. I tracked it down to heartbeat module - specifically line 467, and then the query that immediately follows. Errors had to do with the db_placeholders() function not having correct argument. The array that is passed must have at least one value.
I implemented the following change:
$unlimited_templates = variable_get('heartbeat_activity_templates_unlimited', array());
//my added fix - db_placeholders() requires an array with at least 1 item
if(empty($unlimited_templates)) {
$unlimited_templates = array(1);
}
Cron now runs without errors.. but honestly I didn't track this back very carefully. Hoping I didn't break something else by doing this?
Comments
Comment #1
flaviovs commentedDuplicate? #1865994: Error on Cron: You have an error in your SQL syntax
Comment #2
fuzzy76 commentedyes, it is.