PDOException when running drush command cron-logs

drush cron-logs system_cron
Invalid argument supplied for foreach() query.inc:1853                                                                                    [warning]
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that         [error]
corresponds to your MySQL server version for the right syntax to use near ')) ) subquery' at line 1 in
/home/ame/htdocs/ding/drupal7/includes/database/database.inc:2229

Problem in drush_ultimate_cron_cron_logs on line 315
$log_entries = $job->getLogEntries($limit);

First parameter in getLogEntries should be log_types and be array.

$log_entries = $job->getLogEntries(ULTIMATE_CRON_LOG_TYPE_ALL, $limit);

CommentFileSizeAuthor
#2 ultimate_cron-2843929.patch570 bytesamme

Comments

amme created an issue. See original summary.

amme’s picture

StatusFileSize
new570 bytes
amme’s picture

Status: Active » Needs review
arnested’s picture

This looks good. I won't be able to commit this until the end of the week or early next week though (on vacation with just a phone).

  • arnested committed ee81bd5 on 7.x-2.x authored by amme
    Issue #2843929 by amme: PDOException when running drush command cron-...
arnested’s picture

Status: Needs review » Fixed

Thank you for your contribution.

Your patch has been applied and released as version 7.x-2.3.

Status: Fixed » Closed (fixed)

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