When using Tamper, this message that comes up in watchdog :

Undefined index: in feeds_tamper_load_by_importer() (line 169 of /var/www/html/voya.master/docroot/sites/all/modules/contrib/feeds_tamper/feeds_tamper.inc).

Line 169 :

if (($disabled || empty($i->disabled)) && in_array($i->source, $sources) && function_exists($plugins[$i->plugin_id]['callback'])) {

Narrowed it down to function_exists($plugins[$i->plugin_id]['callback'] When $i->plugin_id = "", there is no ['callback'] element.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skowyra created an issue. See original summary.

skowyra’s picture

Issue summary: View changes
twistor’s picture

Status: Active » Postponed (maintainer needs more info)

What is the plugin that doesn't have a callback?

TimelessDomain’s picture

It may be https://www.drupal.org/project/feeds_tamper_string2id

Got these 2 errors together

Notice: Undefined index: iconv in feeds_tamper_load_by_importer() (line 169 of /sites/all/modules/feeds_tamper/feeds_tamper.inc).

Warning: trim() expects parameter 1 to be string, array given in feeds_tamper_string2id_resolve_target_callback_via_autocomplete() (line 378 of /sites/all/modules/feeds_tamper_string2id/plugins/string2id.inc).

ttronslien’s picture

I do too get this error. Digging further, I get the error on a field that does not have a plugin, at least not in the UI. When I view the db, I see an entry in the feeds_tamper table for the field, but no plugin_id (Images attached.) From what I can remember (and the feed was created today) I never created a tamper for that field, I may have opened the dialogue, but I am pretty sure that I did not save any.

So, the real problem does not start where it appears.
I've created a patch to check if the index exists before it's trying to use it as it solves the problem for now, but I don't think it is the real issue.

ttronslien’s picture

Status: Postponed (maintainer needs more info) » Needs review
ttronslien’s picture

FileSize
20.67 KB
FranCarstens’s picture

This started showing immediately when I accidently hit "add" before completing the tamper settings. An "ajax" error showed up in the error dialogue. Watchdog has this:
First error:

Notice: Undefined index: validate in feeds_tamper_ui_add_plugin_form_validate() (line 388 of feeds_tamper_ui.admin.inc).

Now this message shows all the time:

Notice: Undefined index: in feeds_tamper_load_by_importer() (line 169 of feeds_tamper.inc).

My guess is it's an incomplete tamper that triggers this error.

FranCarstens’s picture

FileSize
16.39 KB

A quick look in the database found the row easy enough. Once I deleted the offending row (missing plugin_id) the error went away.

feeds tamper missing plugin_id row error

krystianbuczak’s picture

Confirm after applying patch from #5 notice disappeared.

twistor’s picture

twistor’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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