Skip to content
Snippets Groups Projects
Commit 579a0093 authored by Alex Barth's avatar Alex Barth
Browse files

#923318: Fix Fatal error: Call to a member function import() on a non-object occuring on cron.

parent 7b863f0d
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
Feeds 7.x 2.0 XXXXXXXXXXXXXXXXXXX
---------------------------------
- #923318: Fix Fatal error: Call to a member function import() on a non-object
occuring on cron.
- Clean up basic settings form.
- Make getConfig() include configuration defaults.
......
......@@ -79,6 +79,7 @@ function feeds_source_import($job) {
try {
$source->existing()->import();
}
catch (FeedsNotExistingException $e) {}
catch (Exception $e) {
watchdog('feeds_source_import()', $e->getMessage(), array(), WATCHDOG_ERROR);
}
......@@ -93,6 +94,7 @@ function feeds_importer_expire($job) {
try {
$importer->existing()->expire();
}
catch (FeedsNotExistingException $e) {}
catch (Exception $e) {
watchdog('feeds_importer_expire()', $e->getMessage(), array(), WATCHDOG_ERROR);
}
......
......@@ -422,6 +422,7 @@ class FeedsSource extends FeedsConfigurable {
$this->importer->existing();
return parent::existing();
}
throw new FeedsNotExistingException(t('Source configuration not valid.'));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment