Download & Extend

Notice: Undefined variable: job in FeedsSource->scheduleClear() (line 319 of sites/all/modules/feeds/includes/FeedsSource.inc)

Project:Feeds
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The above message appears after cron finishes deleting entries created by a feed.
I import some users using /import/myfeed, then I delete the users using the Delete Items tab on the /import/myfeed/delete-items
50 users are deleted on each execution of cron and after the last batch this error appears.

In the job_schedule table the entry for feeds_source_clear still exists. I believe the issue is that the $job variable is set inside the then branch of the if statement in public function scheduleClear(), (FeedsSource.inc line 307) so that in the else branch where the job should be removed, the $job is undefined and thus not removed.

Comments

#1

Version:7.x-2.0-alpha5» 7.x-2.x-dev
Priority:normal» major
Assigned to:Anonymous» twistor
Status:active» needs review

I think this is causing some bigger issues.

AttachmentSizeStatusTest resultOperations
feeds-undefined-job-while-cleaing-1690434-1.patch1.14 KBIgnored: Check issue status.NoneNone

#2

#3

Status:fixed» closed (fixed)

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

#4

I believe this is related to http://drupal.org/node/1103606.

#5

Assigned to:twistor» Anonymous