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.
Hi guys!
I get the following error when I try to run cron:
Fatal error: Call to a member function leftJoin() on a non-object in */sites/all/modules/l10n_update/l10n_update.check.inc on line 115
Lubas
Comment | File | Size | Author |
---|---|---|---|
#5 | l10n_update.check_.patch | 1.6 KB | robertgarrigos |
Comments
Comment #1
int CreditAttribution: int commentedI confirm this bug.
Comment #2
berkas1 CreditAttribution: berkas1 commentedI confirm this bug, too... Please, fix it:)
Comment #3
Jej CreditAttribution: Jej commentedExactly on the same line for me :)
Comment #4
Jej CreditAttribution: Jej commentedI solved it like this (just changing the methods chaining):
$q = db_select('l10n_update_project', 'p');
$q->innerJoin('languages', 'l');
$q->leftJoin('l10n_update_file', 'f', 'p.name = f.project AND l.language = f.language');
$q->condition('p.status', 1);
$q->condition('l.enabled', 1);
// If the file is not there, or it is there, but we did not check since $before.
$q->condition(db_or()->isNull('f.status')->condition(db_and()->condition('f.status', 1)->condition('f.last_checked', $be
$q->range(0, $count);
$q->fields('p', array('name'));
$q->fields('f');
$q->addField('l', 'language', 'lang');
$q->orderBy('last_checked');
$result = $q->execute();
Comment #5
robertgarrigos CreditAttribution: robertgarrigos commentedThis fixed the problem. Here is a patch to review.
Comment #6
lionheart8 CreditAttribution: lionheart8 commentedHi
How exactly does one (php layman) apply this patch? Does one paste it somewhere (where, line?) in that file? Exactly which elements of the patch are "pasted" ... ?
Tried to gamble doing that but could not get it right. ;)
Regards
Comment #7
Lubas CreditAttribution: Lubas commentedhttp://drupal.org/patch/apply
Comment #8
wasare CreditAttribution: wasare commentedThe patch #5 worked for me.
Thanks!
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedWhen will create a new dev Version the last for the Drupal 7 is from 2010-Dec-09!!
Chris
Comment #10
int CreditAttribution: int commentedthis bug is critical, since break core functionalities like cron and other things...
Comment #11
Gábor HojtsyGreat, committed, thanks.